]> git.lizzy.rs Git - rust.git/blob - src/test/ui/invalid-self-argument/bare-fn-start.stderr
Auto merge of #106143 - matthiaskrgr:rollup-3kpy1dc, r=matthiaskrgr
[rust.git] / src / test / 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