rust/src/test/ui/span/issue-27522.rs
2018-12-25 21:08:33 -07:00

9 lines
160 B
Rust

// Point at correct span for self type
struct SomeType {}
trait Foo {
fn handler(self: &SomeType); //~ ERROR invalid method receiver type
}
fn main() {}