fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
302 B10 linesraw
1error: unexpected `self` parameter in function
2  --> $DIR/bare-fn.rs:1:16
3   |
4LL | fn b(foo: u32, &mut self) { }
5   |                ^^^^^^^^^ not valid as function parameter
6   |
7   = note: `self` is only valid as the first parameter of an associated function
8
9error: aborting due to previous error
10