2019-09-02 20:21:58 -05:00
error[E0307]: invalid `self` parameter type: &SomeType
2018-12-25 09:56:47 -06:00
--> $DIR/issue-27522.rs:6:22
2016-12-25 14:50:28 -06:00
|
2019-03-09 06:03:44 -06:00
LL | fn handler(self: &SomeType);
2017-11-08 15:12:34 -06:00
| ^^^^^^^^^
2016-12-25 14:50:28 -06:00
|
2019-09-02 20:21:58 -05:00
= note: type of `self` must be `Self` or a type that dereferences to it
2019-07-15 23:30:48 -05: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`)
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
2019-09-02 20:21:58 -05:00
For more information about this error, try `rustc --explain E0307`.