rust/tests/ui/invalid-self-argument/bare-fn-start.stderr

11 lines
305 B
Plaintext
Raw Normal View History

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