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
Copy file name to clipboardExpand all lines: src/test/ui/feature-gates/feature-gate-arbitrary-self-types.stderr
+3-3
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ LL | fn foo(self: Ptr<Self>);
6
6
|
7
7
= note: for more information, see https://github.com/rust-lang/rust/issues/44874
8
8
= help: add `#![feature(arbitrary_self_types)]` to the crate attributes to enable
9
-
= help: consider changing to `self`, `&self`, `&mut self`, or `self: Box<Self>`
9
+
= 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`)
10
10
11
11
error[E0658]: `Ptr<Bar>` cannot be used as the type of `self` without the `arbitrary_self_types` feature
= note: for more information, see https://github.com/rust-lang/rust/issues/44874
18
18
= help: add `#![feature(arbitrary_self_types)]` to the crate attributes to enable
19
-
= help: consider changing to `self`, `&self`, `&mut self`, or `self: Box<Self>`
19
+
= 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`)
20
20
21
21
error[E0658]: `std::boxed::Box<Ptr<Bar>>` cannot be used as the type of `self` without the `arbitrary_self_types` feature
= note: for more information, see https://github.com/rust-lang/rust/issues/44874
28
28
= help: add `#![feature(arbitrary_self_types)]` to the crate attributes to enable
29
-
= help: consider changing to `self`, `&self`, `&mut self`, or `self: Box<Self>`
29
+
= 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`)
Copy file name to clipboardExpand all lines: src/test/ui/feature-gates/feature-gate-arbitrary_self_types-raw-pointer.stderr
+3-3
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ LL | fn bar(self: *const Self);
6
6
|
7
7
= note: for more information, see https://github.com/rust-lang/rust/issues/44874
8
8
= help: add `#![feature(arbitrary_self_types)]` to the crate attributes to enable
9
-
= help: consider changing to `self`, `&self`, `&mut self`, or `self: Box<Self>`
9
+
= 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`)
10
10
11
11
error[E0658]: `*const Foo` cannot be used as the type of `self` without the `arbitrary_self_types` feature
= note: for more information, see https://github.com/rust-lang/rust/issues/44874
18
18
= help: add `#![feature(arbitrary_self_types)]` to the crate attributes to enable
19
-
= help: consider changing to `self`, `&self`, `&mut self`, or `self: Box<Self>`
19
+
= 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`)
20
20
21
21
error[E0658]: `*const ()` cannot be used as the type of `self` without the `arbitrary_self_types` feature
= note: for more information, see https://github.com/rust-lang/rust/issues/44874
28
28
= help: add `#![feature(arbitrary_self_types)]` to the crate attributes to enable
29
-
= help: consider changing to `self`, `&self`, `&mut self`, or `self: Box<Self>`
29
+
= 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`)
= note: type must be `Self` or a type that dereferences to it
8
-
= help: consider changing to `self`, `&self`, `&mut self`, or `self: Box<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`)
Copy file name to clipboardExpand all lines: src/test/ui/span/issue-27522.stderr
+1-1
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ LL | fn handler(self: &SomeType);
5
5
| ^^^^^^^^^
6
6
|
7
7
= note: type must be `Self` or a type that dereferences to it
8
-
= help: consider changing to `self`, `&self`, `&mut self`, or `self: Box<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`)
= note: type must be `Self` or a type that dereferences to it
8
-
= help: consider changing to `self`, `&self`, `&mut self`, or `self: Box<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`)
= note: type must be `Self` or a type that dereferences to it
17
-
= help: consider changing to `self`, `&self`, `&mut self`, or `self: Box<Self>`
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`)
= note: type must be `Self` or a type that dereferences to it
26
-
= help: consider changing to `self`, `&self`, `&mut self`, or `self: Box<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`)
0 commit comments