-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
83 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 14 additions & 14 deletions
28
crates/test-ui/ui/implement_protocol_missing_super.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
error[E0277]: the trait bound `CustomObject: NSObjectProtocol` is not satisfied | ||
--> ui/implement_protocol_missing_super.rs | ||
| | ||
| unsafe impl NSApplicationDelegate for CustomObject {} | ||
| ^^^^^^^^^^^^ the trait `NSObjectProtocol` is not implemented for `CustomObject` | ||
| unsafe impl NSURLSessionDelegate for CustomObject {} | ||
| ^^^^^^^^^^^^ the trait `NSObjectProtocol` is not implemented for `CustomObject` | ||
| | ||
= help: the following other types implement trait `NSObjectProtocol`: | ||
NSObject | ||
__NSProxy | ||
ProtocolObject<T> | ||
NSApplication | ||
NSCollectionView | ||
NSCollectionLayoutSection | ||
NSCollectionLayoutGroupCustomItem | ||
NSControl | ||
NSArray<ObjectType> | ||
NSMutableArray<ObjectType> | ||
NSDictionary<KeyType, ObjectType> | ||
NSSet<ObjectType> | ||
NSEnumerator<ObjectType> | ||
and $N others | ||
note: required by a bound in `NSApplicationDelegate` | ||
--> $WORKSPACE/crates/icrate/src/generated/AppKit/NSApplication.rs | ||
note: required by a bound in `NSURLSessionDelegate` | ||
--> $WORKSPACE/crates/icrate/src/generated/Foundation/NSURLSession.rs | ||
| | ||
| / extern_protocol!( | ||
| | pub unsafe trait NSApplicationDelegate: NSObjectProtocol + IsMainThreadOnly { | ||
| | --------------------- required by a bound in this trait | ||
| | #[cfg(feature = "AppKit_NSApplication")] | ||
| | pub unsafe trait NSURLSessionDelegate: NSObjectProtocol { | ||
| | -------------------- required by a bound in this trait | ||
| | #[cfg(all(feature = "Foundation_NSError", feature = "Foundation_NSURLSession"))] | ||
| | #[optional] | ||
... | | ||
| | unsafe impl ProtocolType for dyn NSApplicationDelegate {} | ||
| | unsafe impl ProtocolType for dyn NSURLSessionDelegate {} | ||
| | ); | ||
| |_^ required by this bound in `NSApplicationDelegate` | ||
| |_^ required by this bound in `NSURLSessionDelegate` | ||
= note: this error originates in the macro `extern_protocol` (in Nightly builds, run with -Z macro-backtrace for more info) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters