1 2 3 4 5 6 7 8 9
// Point at correct span for self type struct SomeType {} trait Foo { fn handler(self: &SomeType); //~ ERROR invalid `self` parameter type } fn main() {}