]> git.lizzy.rs Git - rust.git/blob - src/test/ui/invalid-self-argument/bare-fn-start.stderr
37753e61f582a790d42af1456412d34b8e3e851f
[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