]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/self-in-function-arg.stderr
Rollup merge of #106644 - alexcrichton:update-wasi-toolchain, r=cuviper
[rust.git] / tests / ui / parser / self-in-function-arg.stderr
1 error: unexpected `self` parameter in function
2   --> $DIR/self-in-function-arg.rs:1:15
3    |
4 LL | fn foo(x:i32, self: i32) -> i32 { self }
5    |               ^^^^ must be the first parameter of an associated function
6
7 error: aborting due to previous error
8