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
error[E0277]: the trait bound `InteriorMutable: mutability::private::MutabilityIsMutable` is not satisfied
2
+
--> ui/declare_class_mut_self_not_mutable.rs
3
+
|
4
+
| / declare_class!(
5
+
| | struct CustomObject;
6
+
| |
7
+
| | unsafe impl ClassType for CustomObject {
8
+
... |
9
+
| | }
10
+
| | );
11
+
| | ^
12
+
| | |
13
+
| |_the trait `mutability::private::MutabilityIsMutable` is not implemented for `InteriorMutable`
14
+
| required by a bound introduced by this call
15
+
|
16
+
= help: the following other types implement trait `mutability::private::MutabilityIsMutable`:
17
+
Mutable
18
+
MutableWithImmutableSuperclass<IS>
19
+
= note: required for `CustomObject` to implement `IsMutable`
20
+
= note: required for `extern "C" fn(&mut CustomObject, objc2::runtime::Sel) -> &mut CustomObject` to implement `MethodImplementation`
21
+
note: required by a bound in `ClassBuilder::add_method`
22
+
--> $WORKSPACE/crates/objc2/src/declare/mod.rs
23
+
|
24
+
| F: MethodImplementation<Callee = T>,
25
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `ClassBuilder::add_method`
26
+
= 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)
27
+
28
+
error[E0277]: the trait bound `InteriorMutable: mutability::private::MutabilityIsMutable` is not satisfied
29
+
--> ui/declare_class_mut_self_not_mutable.rs
30
+
|
31
+
| / declare_class!(
32
+
| | struct CustomObject;
33
+
| |
34
+
| | unsafe impl ClassType for CustomObject {
35
+
... |
36
+
| | }
37
+
| | );
38
+
| | ^
39
+
| | |
40
+
| |_the trait `mutability::private::MutabilityIsMutable` is not implemented for `InteriorMutable`
41
+
| required by a bound introduced by this call
42
+
|
43
+
= help: the following other types implement trait `mutability::private::MutabilityIsMutable`:
44
+
Mutable
45
+
MutableWithImmutableSuperclass<IS>
46
+
= note: required for `CustomObject` to implement `IsMutable`
47
+
= note: required for `extern "C" fn(&mut CustomObject, objc2::runtime::Sel)` to implement `MethodImplementation`
48
+
note: required by a bound in `ClassBuilder::add_method`
49
+
--> $WORKSPACE/crates/objc2/src/declare/mod.rs
50
+
|
51
+
| F: MethodImplementation<Callee = T>,
52
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `ClassBuilder::add_method`
53
+
= 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)
54
+
55
+
error[E0277]: the trait bound `InteriorMutable: mutability::private::MutabilityIsMutable` is not satisfied
56
+
--> ui/declare_class_mut_self_not_mutable.rs
57
+
|
58
+
| / declare_class!(
59
+
| | struct CustomObject;
60
+
| |
61
+
| | unsafe impl ClassType for CustomObject {
62
+
... |
63
+
| | }
64
+
| | );
65
+
| | ^
66
+
| | |
67
+
| |_the trait `mutability::private::MutabilityIsMutable` is not implemented for `InteriorMutable`
68
+
| required by a bound introduced by this call
69
+
|
70
+
= help: the following other types implement trait `mutability::private::MutabilityIsMutable`:
71
+
Mutable
72
+
MutableWithImmutableSuperclass<IS>
73
+
= note: required for `CustomObject` to implement `IsMutable`
74
+
= note: required for `extern "C" fn(&mut CustomObject, objc2::runtime::Sel) -> __IdReturnValue` to implement `MethodImplementation`
75
+
note: required by a bound in `ClassBuilder::add_method`
76
+
--> $WORKSPACE/crates/objc2/src/declare/mod.rs
77
+
|
78
+
| F: MethodImplementation<Callee = T>,
79
+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `ClassBuilder::add_method`
80
+
= 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)
0 commit comments