]> git.lizzy.rs Git - rust.git/blob - src/test/ui/invalid-self-argument/bare-fn.rs
Rollup merge of #105955 - Nilstrieb:no-trivial-opt-wrappers-we-have-field-accesses...
[rust.git] / src / test / ui / invalid-self-argument / bare-fn.rs
1 fn b(foo: u32, &mut self) { }
2 //~^ ERROR unexpected `self` parameter in function
3 //~| NOTE must be the first parameter of an associated function
4
5 fn main() { }