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[E0658]: `*const A` cannot be used as the type of `self` without the `arbitrary_self_types_pointers` feature
2
+
--> $DIR/arbitrary_self_types_pointer.rs:6:16
3
+
|
4
+
LL | fn m(self: *const Self) {}
5
+
| ^^^^^^^^^^^
6
+
|
7
+
= note: see issue #44874 <https://github.com/rust-lang/rust/issues/44874> for more information
8
+
= help: add `#![feature(arbitrary_self_types_pointers)]` to the crate attributes to enable
9
+
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
10
+
= help: consider changing to `self`, `&self`, `&mut self`, or a type implementing `Receiver` such as `self: Box<Self>`, `self: Rc<Self>`, or `self: Arc<Self>`
11
+
12
+
error[E0658]: `*const Self` cannot be used as the type of `self` without the `arbitrary_self_types_pointers` feature
13
+
--> $DIR/arbitrary_self_types_pointer.rs:11:17
14
+
|
15
+
LL | fn bm(self: *const Self) {}
16
+
| ^^^^^^^^^^^
17
+
|
18
+
= note: see issue #44874 <https://github.com/rust-lang/rust/issues/44874> for more information
19
+
= help: add `#![feature(arbitrary_self_types_pointers)]` to the crate attributes to enable
20
+
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
21
+
= help: consider changing to `self`, `&self`, `&mut self`, or a type implementing `Receiver` such as `self: Box<Self>`, `self: Rc<Self>`, or `self: Arc<Self>`
22
+
23
+
error: aborting due to 2 previous errors
24
+
25
+
For more information about this error, try `rustc --explain E0658`.
= note: type of `self` must be `Self` or some type implementing Receiver
8
+
= help: consider changing to `self`, `&self`, `&mut self`, or a type implementing `Receiver` such as `self: Box<Self>`, `self: Rc<Self>`, or `self: Arc<Self>`
9
+
10
+
error: aborting due to 1 previous error
11
+
12
+
For more information about this error, try `rustc --explain E0307`.
0 commit comments