2017-11-08 15:12:34 -06:00
|
|
|
error[E0307]: invalid `self` type: &SomeType
|
2016-12-25 14:50:28 -06:00
|
|
|
--> $DIR/issue-27522.rs:16:22
|
|
|
|
|
|
|
|
|
16 | fn handler(self: &SomeType);
|
2017-11-08 15:12:34 -06:00
|
|
|
| ^^^^^^^^^
|
2016-12-25 14:50:28 -06:00
|
|
|
|
|
2017-11-08 15:12:34 -06:00
|
|
|
= note: type must be `Self` or a type that dereferences to it`
|
|
|
|
= help: consider changing to `self`, `&self`, `&mut self`, or `self: Box<Self>`
|
2016-12-25 14:50:28 -06:00
|
|
|
|
2017-11-08 15:12:34 -06:00
|
|
|
error: arbitrary `self` types are unstable (see issue #44874)
|
|
|
|
--> $DIR/issue-27522.rs:16:22
|
|
|
|
|
|
|
|
|
16 | fn handler(self: &SomeType);
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: add #![feature(arbitrary_self_types)] to the crate attributes to enable
|
|
|
|
= help: consider changing to `self`, `&self`, `&mut self`, or `self: Box<Self>`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2016-12-25 14:50:28 -06:00
|
|
|
|