2018-12-16 15:47:37 -06:00
|
|
|
error[E0307]: invalid method receiver type: &SomeType
|
2016-12-25 14:50:28 -06:00
|
|
|
--> $DIR/issue-27522.rs:16:22
|
|
|
|
|
|
2018-12-16 15:47:37 -06:00
|
|
|
LL | fn handler(self: &SomeType); //~ ERROR invalid method receiver type
|
2017-11-08 15:12:34 -06:00
|
|
|
| ^^^^^^^^^
|
2016-12-25 14:50:28 -06:00
|
|
|
|
|
2018-03-15 04:59:17 -05:00
|
|
|
= note: type must be `Self` or a type that dereferences to it
|
2017-11-08 15:12:34 -06:00
|
|
|
= help: consider changing to `self`, `&self`, `&mut self`, or `self: Box<Self>`
|
2016-12-25 14:50:28 -06:00
|
|
|
|
2017-11-09 10:03:27 -06:00
|
|
|
error: aborting due to previous error
|
2016-12-25 14:50:28 -06:00
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0307`.
|