rust/tests/ui/span/issue-27522.rs
2023-01-11 09:32:08 +00:00

9 lines
161 B
Rust

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