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
consider changing to `self`, `&self`, `&mut self`, `self: Box<Self>`, `self: Rc<Self>`, `self: Arc<Self>`, or `self: Pin<P>` (where P is one of the previous types except `Self`)
267
+
consider changing to `self`, `&self`, `&mut self`, `self: Box<Self>`, `self: Rc<Self>`, `self: Arc<Self>`, or `self: Pin<P>` (where P is one of the previous types except `Self`);
268
+
alternatively, consider implement `Receiver` trait on the type of `self`, where applicable
`NonNull` does not implement `Receiver` because it has methods that may shadow the referent; consider wrapping your `NonNull` in a newtype wrapper for which you implement `Receiver`
= note: type of `self` must be `Self` or a type that dereferences to it
8
-
= help: consider changing to `self`, `&self`, `&mut self`, `self: Box<Self>`, `self: Rc<Self>`, `self: Arc<Self>`, or `self: Pin<P>` (where P is one of the previous types except `Self`)
8
+
= help: consider changing to `self`, `&self`, `&mut self`, `self: Box<Self>`, `self: Rc<Self>`, `self: Arc<Self>`, or `self: Pin<P>` (where P is one of the previous types except `Self`);
9
+
alternatively, consider implement `Receiver` trait on the type of `self`, where applicable
= note: type of `self` must be `Self` or a type that dereferences to it
8
-
= help: consider changing to `self`, `&self`, `&mut self`, `self: Box<Self>`, `self: Rc<Self>`, `self: Arc<Self>`, or `self: Pin<P>` (where P is one of the previous types except `Self`)
8
+
= help: consider changing to `self`, `&self`, `&mut self`, `self: Box<Self>`, `self: Rc<Self>`, `self: Arc<Self>`, or `self: Pin<P>` (where P is one of the previous types except `Self`);
9
+
alternatively, consider implement `Receiver` trait on the type of `self`, where applicable
9
10
10
11
error[E0038]: the trait `Foo` is not dyn compatible
Copy file name to clipboardExpand all lines: tests/ui/async-await/issue-66312.stderr
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,8 @@ LL | fn is_some(self: T);
5
5
| ^
6
6
|
7
7
= note: type of `self` must be `Self` or a type that dereferences to it
8
-
= help: consider changing to `self`, `&self`, `&mut self`, `self: Box<Self>`, `self: Rc<Self>`, `self: Arc<Self>`, or `self: Pin<P>` (where P is one of the previous types except `Self`)
8
+
= help: consider changing to `self`, `&self`, `&mut self`, `self: Box<Self>`, `self: Rc<Self>`, `self: Arc<Self>`, or `self: Pin<P>` (where P is one of the previous types except `Self`);
9
+
alternatively, consider implement `Receiver` trait on the type of `self`, where applicable
Copy file name to clipboardExpand all lines: tests/ui/feature-gates/feature-gate-arbitrary-self-types.stderr
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,8 @@ LL | fn foo(self: Ptr<Self>) {}
5
5
| ^^^^^^^^^
6
6
|
7
7
= note: type of `self` must be `Self` or a type that dereferences to it
8
-
= help: consider changing to `self`, `&self`, `&mut self`, `self: Box<Self>`, `self: Rc<Self>`, `self: Arc<Self>`, or `self: Pin<P>` (where P is one of the previous types except `Self`)
8
+
= help: consider changing to `self`, `&self`, `&mut self`, `self: Box<Self>`, `self: Rc<Self>`, `self: Arc<Self>`, or `self: Pin<P>` (where P is one of the previous types except `Self`);
9
+
alternatively, consider implement `Receiver` trait on the type of `self`, where applicable
= note: type of `self` must be `Self` or a type that dereferences to it
17
-
= help: consider changing to `self`, `&self`, `&mut self`, `self: Box<Self>`, `self: Rc<Self>`, `self: Arc<Self>`, or `self: Pin<P>` (where P is one of the previous types except `Self`)
18
+
= help: consider changing to `self`, `&self`, `&mut self`, `self: Box<Self>`, `self: Rc<Self>`, `self: Arc<Self>`, or `self: Pin<P>` (where P is one of the previous types except `Self`);
19
+
alternatively, consider implement `Receiver` trait on the type of `self`, where applicable
= note: type of `self` must be `Self` or a type that dereferences to it
26
-
= help: consider changing to `self`, `&self`, `&mut self`, `self: Box<Self>`, `self: Rc<Self>`, `self: Arc<Self>`, or `self: Pin<P>` (where P is one of the previous types except `Self`)
28
+
= help: consider changing to `self`, `&self`, `&mut self`, `self: Box<Self>`, `self: Rc<Self>`, `self: Arc<Self>`, or `self: Pin<P>` (where P is one of the previous types except `Self`);
29
+
alternatively, consider implement `Receiver` trait on the type of `self`, where applicable
Copy file name to clipboardExpand all lines: tests/ui/feature-gates/feature-gate-dispatch-from-dyn-cell.stderr
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,8 @@ LL | fn cell(self: Cell<&Self>);
5
5
| ^^^^^^^^^^^
6
6
|
7
7
= note: type of `self` must be `Self` or a type that dereferences to it
8
-
= help: consider changing to `self`, `&self`, `&mut self`, `self: Box<Self>`, `self: Rc<Self>`, `self: Arc<Self>`, or `self: Pin<P>` (where P is one of the previous types except `Self`)
8
+
= help: consider changing to `self`, `&self`, `&mut self`, `self: Box<Self>`, `self: Rc<Self>`, `self: Arc<Self>`, or `self: Pin<P>` (where P is one of the previous types except `Self`);
9
+
alternatively, consider implement `Receiver` trait on the type of `self`, where applicable
= note: type of `self` must be `Self` or a type that dereferences to it
62
-
= help: consider changing to `self`, `&self`, `&mut self`, `self: Box<Self>`, `self: Rc<Self>`, `self: Arc<Self>`, or `self: Pin<P>` (where P is one of the previous types except `Self`)
62
+
= help: consider changing to `self`, `&self`, `&mut self`, `self: Box<Self>`, `self: Rc<Self>`, `self: Arc<Self>`, or `self: Pin<P>` (where P is one of the previous types except `Self`);
63
+
alternatively, consider implement `Receiver` trait on the type of `self`, where applicable
= note: type of `self` must be `Self` or a type that dereferences to it
71
-
= help: consider changing to `self`, `&self`, `&mut self`, `self: Box<Self>`, `self: Rc<Self>`, `self: Arc<Self>`, or `self: Pin<P>` (where P is one of the previous types except `Self`)
72
+
= help: consider changing to `self`, `&self`, `&mut self`, `self: Box<Self>`, `self: Rc<Self>`, `self: Arc<Self>`, or `self: Pin<P>` (where P is one of the previous types except `Self`);
73
+
alternatively, consider implement `Receiver` trait on the type of `self`, where applicable
72
74
73
75
error[E0271]: type mismatch resolving `<Silly as FindReceiver>::Receiver == Foo`
Copy file name to clipboardExpand all lines: tests/ui/self/arbitrary-self-opaque.stderr
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,8 @@ LL | fn foo(self: Bar) {}
5
5
| ^^^
6
6
|
7
7
= note: type of `self` must be `Self` or a type that dereferences to it
8
-
= help: consider changing to `self`, `&self`, `&mut self`, `self: Box<Self>`, `self: Rc<Self>`, `self: Arc<Self>`, or `self: Pin<P>` (where P is one of the previous types except `Self`)
8
+
= help: consider changing to `self`, `&self`, `&mut self`, `self: Box<Self>`, `self: Rc<Self>`, `self: Arc<Self>`, or `self: Pin<P>` (where P is one of the previous types except `Self`);
9
+
alternatively, consider implement `Receiver` trait on the type of `self`, where applicable
Copy file name to clipboardExpand all lines: tests/ui/self/dispatch-dyn-incompatible-that-does-not-deref.stderr
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,8 @@ LL | fn method(self: &W) {}
23
23
| ^^
24
24
|
25
25
= note: type of `self` must be `Self` or a type that dereferences to it
26
-
= help: consider changing to `self`, `&self`, `&mut self`, `self: Box<Self>`, `self: Rc<Self>`, `self: Arc<Self>`, or `self: Pin<P>` (where P is one of the previous types except `Self`)
26
+
= help: consider changing to `self`, `&self`, `&mut self`, `self: Box<Self>`, `self: Rc<Self>`, `self: Arc<Self>`, or `self: Pin<P>` (where P is one of the previous types except `Self`);
27
+
alternatively, consider implement `Receiver` trait on the type of `self`, where applicable
27
28
28
29
error[E0038]: the trait `Foo` is not dyn compatible
0 commit comments