You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| ---------- required by a bound in this associated function
31
+
...
29
32
| F: MethodImplementation<Callee = T>,
30
33
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `ClassBuilder::add_method`
31
34
= note: this error originates in the macro `$crate::__declare_class_register_out` which comes from the expansion of the macro `declare_class` (in Nightly builds, run with -Z macro-backtrace for more info)
| ---------- required by a bound in this associated function
66
+
...
61
67
| F: MethodImplementation<Callee = T>,
62
68
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `ClassBuilder::add_method`
63
69
= note: this error originates in the macro `$crate::__declare_class_register_out` which comes from the expansion of the macro `declare_class` (in Nightly builds, run with -Z macro-backtrace for more info)
| ---------- required by a bound in this associated function
101
+
...
93
102
| F: MethodImplementation<Callee = T>,
94
103
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `ClassBuilder::add_method`
95
104
= note: this error originates in the macro `$crate::__declare_class_register_out` which comes from the expansion of the macro `declare_class` (in Nightly builds, run with -Z macro-backtrace for more info)
| ---------- required by a bound in this associated function
136
+
...
125
137
| F: MethodImplementation<Callee = T>,
126
138
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `ClassBuilder::add_method`
127
139
= note: this error originates in the macro `$crate::__declare_class_register_out` which comes from the expansion of the macro `declare_class` (in Nightly builds, run with -Z macro-backtrace for more info)
| ---------- required by a bound in this associated function
171
+
...
157
172
| F: MethodImplementation<Callee = T>,
158
173
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `ClassBuilder::add_method`
159
174
= note: this error originates in the macro `$crate::__declare_class_register_out` which comes from the expansion of the macro `declare_class` (in Nightly builds, run with -Z macro-backtrace for more info)
| ---------- required by a bound in this associated function
206
+
...
189
207
| F: MethodImplementation<Callee = T>,
190
208
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `ClassBuilder::add_method`
191
209
= note: this error originates in the macro `$crate::__declare_class_register_out` which comes from the expansion of the macro `declare_class` (in Nightly builds, run with -Z macro-backtrace for more info)
| ---------- required by a bound in this associated function
26
+
...
24
27
| F: MethodImplementation<Callee = T>,
25
28
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `ClassBuilder::add_method`
26
29
= note: this error originates in the macro `$crate::__declare_class_register_out` which comes from the expansion of the macro `declare_class` (in Nightly builds, run with -Z macro-backtrace for more info)
@@ -48,6 +51,9 @@ error[E0277]: the trait bound `InteriorMutable: mutability::private::MutabilityI
48
51
note: required by a bound in `ClassBuilder::add_method`
| ---------- required by a bound in this associated function
56
+
...
51
57
| F: MethodImplementation<Callee = T>,
52
58
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `ClassBuilder::add_method`
53
59
= note: this error originates in the macro `$crate::__declare_class_register_out` which comes from the expansion of the macro `declare_class` (in Nightly builds, run with -Z macro-backtrace for more info)
@@ -75,6 +81,9 @@ error[E0277]: the trait bound `InteriorMutable: mutability::private::MutabilityI
75
81
note: required by a bound in `ClassBuilder::add_method`
| ---------- required by a bound in this associated function
86
+
...
78
87
| F: MethodImplementation<Callee = T>,
79
88
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `ClassBuilder::add_method`
80
89
= note: this error originates in the macro `$crate::__declare_class_register_out` which comes from the expansion of the macro `declare_class` (in Nightly builds, run with -Z macro-backtrace for more info)
| ----------------------------------------------- required by a bound in this function
19
+
...
17
20
| <T::Super as ClassType>::Mutability: ValidSubclassMutability<T::Mutability>,
18
21
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `assert_mutability_matches_superclass_mutability`
19
22
= note: this error originates in the macro `$crate::__inner_extern_class` which comes from the expansion of the macro `extern_class` (in Nightly builds, run with -Z macro-backtrace for more info)
@@ -36,6 +39,9 @@ error[E0271]: type mismatch resolving `<NSObject as ClassType>::Mutability == Im
36
39
note: required by a bound in `assert_mutability_matches_superclass_mutability`
| ----------------------------------------------- required by a bound in this function
44
+
...
39
45
| <T::Super as ClassType>::Mutability: ValidSubclassMutability<T::Mutability>,
40
46
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `assert_mutability_matches_superclass_mutability`
41
47
= note: this error originates in the macro `$crate::__inner_extern_class` which comes from the expansion of the macro `extern_class` (in Nightly builds, run with -Z macro-backtrace for more info)
@@ -58,6 +64,9 @@ error[E0271]: type mismatch resolving `<NSObject as ClassType>::Mutability == Im
58
64
note: required by a bound in `assert_mutability_matches_superclass_mutability`
| ----------------------------------------------- required by a bound in this function
69
+
...
61
70
| <T::Super as ClassType>::Mutability: ValidSubclassMutability<T::Mutability>,
62
71
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `assert_mutability_matches_superclass_mutability`
63
72
= note: this error originates in the macro `$crate::__inner_extern_class` which comes from the expansion of the macro `extern_class` (in Nightly builds, run with -Z macro-backtrace for more info)
@@ -80,6 +89,9 @@ error[E0271]: type mismatch resolving `<NSObject as ClassType>::Mutability == Mu
80
89
note: required by a bound in `assert_mutability_matches_superclass_mutability`
| ----------------------------------------------- required by a bound in this function
94
+
...
83
95
| <T::Super as ClassType>::Mutability: ValidSubclassMutability<T::Mutability>,
84
96
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `assert_mutability_matches_superclass_mutability`
85
97
= note: this error originates in the macro `$crate::__inner_extern_class` which comes from the expansion of the macro `extern_class` (in Nightly builds, run with -Z macro-backtrace for more info)
@@ -102,6 +114,9 @@ error[E0271]: type mismatch resolving `<NSObject as ClassType>::Mutability == Mu
102
114
note: required by a bound in `assert_mutability_matches_superclass_mutability`
| ----------------------------------------------- required by a bound in this function
119
+
...
105
120
| <T::Super as ClassType>::Mutability: ValidSubclassMutability<T::Mutability>,
106
121
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `assert_mutability_matches_superclass_mutability`
107
122
= note: this error originates in the macro `$crate::__inner_extern_class` which comes from the expansion of the macro `extern_class` (in Nightly builds, run with -Z macro-backtrace for more info)
Copy file name to clipboardExpand all lines: crates/test-ui/ui/extern_methods_invalid_type.stderr
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,9 @@ error[E0277]: the trait bound `Id<MyObject>: Encode` is not satisfied
24
24
note: required by a bound in `send_message`
25
25
--> $WORKSPACE/crates/objc2/src/message/mod.rs
26
26
|
27
+
| unsafe fn send_message<A, R>(self, sel: Sel, args: A) -> R
28
+
| ------------ required by a bound in this associated function
29
+
...
27
30
| R: EncodeConvertReturn,
28
31
| ^^^^^^^^^^^^^^^^^^^ required by this bound in `MessageReceiver::send_message`
29
32
= note: this error originates in the macro `$crate::__msg_send_helper` which comes from the expansion of the macro `extern_methods` (in Nightly builds, run with -Z macro-backtrace for more info)
@@ -100,6 +103,9 @@ error[E0277]: the trait bound `Result<(), Id<NSObject>>: Encode` is not satisfie
100
103
note: required by a bound in `send_message`
101
104
--> $WORKSPACE/crates/objc2/src/message/mod.rs
102
105
|
106
+
| unsafe fn send_message<A, R>(self, sel: Sel, args: A) -> R
107
+
| ------------ required by a bound in this associated function
108
+
...
103
109
| R: EncodeConvertReturn,
104
110
| ^^^^^^^^^^^^^^^^^^^ required by this bound in `MessageReceiver::send_message`
105
111
= note: this error originates in the macro `$crate::__msg_send_helper` which comes from the expansion of the macro `extern_methods` (in Nightly builds, run with -Z macro-backtrace for more info)
0 commit comments