rust/tests/ui/invalid-self-argument/trait-fn.stderr
2023-01-11 09:32:08 +00:00

9 lines
236 B
Plaintext

error: unexpected `self` parameter in function
--> $DIR/trait-fn.rs:4:20
|
LL | fn c(foo: u32, self) {}
| ^^^^ must be the first parameter of an associated function
error: aborting due to previous error