fork/rust

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

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
320 B10 linesraw
1error: unexpected `self` parameter in function
2  --> $DIR/self-in-function-arg.rs:1:15
3   |
4LL | fn foo(x:i32, self: i32) -> i32 { 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