]> git.lizzy.rs Git - rust.git/blob - src/test/ui/invalid-self-argument/bare-fn-start.stderr
Rollup merge of #56141 - jnqnfe:osstr_len_clarity, r=nagisa
[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 an associated function
6
7 error: aborting due to previous error
8