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

11 lines
303 B
Plaintext

error: `self` parameter is only allowed in associated functions
--> $DIR/bare-fn-start.rs:1:6
|
LL | fn a(&self) { }
| ^^^^^ not semantically valid as function parameter
|
= note: associated functions are those in `impl` or `trait` definitions
error: aborting due to previous error