rust/tests/ui/span/issue-27522.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
161 B
Rust
Raw Normal View History

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