]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/self-in-function-arg.stderr
Rollup merge of #67005 - andrewbanchich:master, r=joshtriplett
[rust.git] / src / test / 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    |               ^^^^ not valid as function parameter
6    |
7    = note: `self` is only valid as the first parameter of an associated function
8
9 error: aborting due to previous error
10