fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
256 B8 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   |               ^^^^ must be the first parameter of an associated function
6
7error: aborting due to previous error
8