rust/tests/ui/invalid-self-argument/bare-fn.rs

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

6 lines
160 B
Rust
Raw Normal View History

fn b(foo: u32, &mut self) { }
//~^ ERROR unexpected `self` parameter in function
//~| NOTE must be the first parameter of an associated function
fn main() { }