]> git.lizzy.rs Git - rust.git/blob - src/test/ui/invalid-self-argument/bare-fn-start.stderr
d0eca1a9e5ce17ceb12c88eef88c3a1d6be8933f
[rust.git] / src / test / ui / invalid-self-argument / bare-fn-start.stderr
1 error: unexpected `self` argument in function
2   --> $DIR/bare-fn-start.rs:1:7
3    |
4 LL | fn a(&self) { }
5    |       ^^^^ `self` is only valid as the first argument of a trait function
6
7 error: aborting due to previous error
8