]> git.lizzy.rs Git - rust.git/blob - src/test/ui/invalid-self-argument/bare-fn.stderr
Merge commit '40b00f4200fbdeefd11815398cb46394b8cb0a5e' into sync_cg_clif-2021-12-30
[rust.git] / src / test / ui / invalid-self-argument / bare-fn.stderr
1 error: unexpected `self` parameter in function
2   --> $DIR/bare-fn.rs:1:16
3    |
4 LL | fn b(foo: u32, &mut self) { }
5    |                ^^^^^^^^^ must be the first parameter of an associated function
6
7 error: aborting due to previous error
8