]>
Commit | Line | Data |
---|---|---|
abe05a73 | 1 | error[E0307]: invalid `self` type: &SomeType |
32a655c1 SL |
2 | --> $DIR/issue-27522.rs:16:22 |
3 | | | |
ff7c6d11 | 4 | 16 | fn handler(self: &SomeType); //~ ERROR invalid `self` type |
abe05a73 | 5 | | ^^^^^^^^^ |
32a655c1 | 6 | | |
abe05a73 XL |
7 | = note: type must be `Self` or a type that dereferences to it` |
8 | = help: consider changing to `self`, `&self`, `&mut self`, or `self: Box<Self>` | |
32a655c1 | 9 | |
041b39d2 | 10 | error: aborting due to previous error |
32a655c1 | 11 |