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