2021-03-29 18:10:26 +00:00
error[E0658]: `*const Foo` cannot be used as the type of `self` without the `arbitrary_self_types` feature
--> $DIR/feature-gate-arbitrary_self_types-raw-pointer.rs:4:18
2017-12-11 17:14:47 +00:00
|
2021-03-29 18:10:26 +00:00
LL | fn foo(self: *const Self) {}
2017-12-11 17:14:47 +00:00
| ^^^^^^^^^^^
|
2020-02-07 12:07:02 +00:00
= note: see issue #44874 <https://github.com/rust-lang/rust/issues/44874> for more information
2019-07-09 09:32:08 +00:00
= help: add `#![feature(arbitrary_self_types)]` to the crate attributes to enable
2024-01-10 06:39:02 +00:00
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
2019-07-16 04:30:48 +00:00
= 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`)
2017-12-11 17:14:47 +00:00
2022-06-11 22:47:21 +00:00
error[E0658]: `*const ()` cannot be used as the type of `self` without the `arbitrary_self_types` feature
--> $DIR/feature-gate-arbitrary_self_types-raw-pointer.rs:14:18
2017-12-11 17:14:47 +00:00
|
2022-06-11 22:47:21 +00:00
LL | fn bar(self: *const Self) {}
2017-12-11 17:14:47 +00:00
| ^^^^^^^^^^^
|
2020-02-07 12:07:02 +00:00
= note: see issue #44874 <https://github.com/rust-lang/rust/issues/44874> for more information
2019-07-09 09:32:08 +00:00
= help: add `#![feature(arbitrary_self_types)]` to the crate attributes to enable
2024-01-10 06:39:02 +00:00
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
2019-07-16 04:30:48 +00:00
= 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`)
2017-12-11 17:14:47 +00:00
2022-06-11 22:47:21 +00:00
error[E0658]: `*const Self` cannot be used as the type of `self` without the `arbitrary_self_types` feature
--> $DIR/feature-gate-arbitrary_self_types-raw-pointer.rs:9:18
2017-12-11 17:14:47 +00:00
|
2022-06-11 22:47:21 +00:00
LL | fn bar(self: *const Self);
2017-12-11 17:14:47 +00:00
| ^^^^^^^^^^^
|
2020-02-07 12:07:02 +00:00
= note: see issue #44874 <https://github.com/rust-lang/rust/issues/44874> for more information
2019-07-09 09:32:08 +00:00
= help: add `#![feature(arbitrary_self_types)]` to the crate attributes to enable
2024-01-10 06:39:02 +00:00
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
2019-07-16 04:30:48 +00:00
= 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`)
2017-12-11 17:14:47 +00:00
error: aborting due to 3 previous errors
2018-03-03 14:59:40 +00:00
For more information about this error, try `rustc --explain E0658`.