rust/src/test/ui/span/issue-27522.stderr

12 lines
357 B
Plaintext
Raw Normal View History

error[E0307]: invalid method receiver type: &SomeType
2018-12-25 09:56:47 -06:00
--> $DIR/issue-27522.rs:6:22
|
2019-03-09 06:03:44 -06:00
LL | fn handler(self: &SomeType);
2017-11-08 15:12:34 -06: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>`
error: aborting due to previous error