]> git.lizzy.rs Git - rust.git/blob - tests/ui/invalid-self-argument/bare-fn-start.stderr
Rollup merge of #107777 - compiler-errors:derive_const-actually-derive-const, r=fee1...
[rust.git] / tests / ui / invalid-self-argument / bare-fn-start.stderr
1 error: `self` parameter is only allowed in associated functions
2   --> $DIR/bare-fn-start.rs:1:6
3    |
4 LL | fn a(&self) { }
5    |      ^^^^^ not semantically valid as function parameter
6    |
7    = note: associated functions are those in `impl` or `trait` definitions
8
9 error: aborting due to previous error
10