summaryrefslogtreecommitdiffstats
path: root/tests/ui/invalid-self-argument/bare-fn.rs
blob: 342bdc31a7c8218f45a05c557a4206a610f3871a (plain)
1
2
3
4
5
fn b(foo: u32, &mut self) { }
//~^ ERROR unexpected `self` parameter in function
//~| NOTE must be the first parameter of an associated function

fn main() { }