]> git.lizzy.rs Git - rust.git/blob - src/test/ui/invalid-self-argument/bare-fn-start.stderr
Rollup merge of #61084 - blkerby:unreachable_doc, r=KodrAus
[rust.git] / src / test / ui / invalid-self-argument / bare-fn-start.stderr
1 error: unexpected `self` parameter in function
2   --> $DIR/bare-fn-start.rs:1:6
3    |
4 LL | fn a(&self) { }
5    |      ^^^^^ not valid as function parameter
6    |
7    = note: `self` is only valid as the first parameter of an associated function
8
9 error: aborting due to previous error
10