]> git.lizzy.rs Git - rust.git/blob - src/test/ui/invalid-self-argument/trait-fn.stderr
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[rust.git] / src / test / ui / invalid-self-argument / trait-fn.stderr
1 error: unexpected `self` argument in function
2   --> $DIR/trait-fn.rs:4:20
3    |
4 LL |     fn c(foo: u32, self) {}
5    |                    ^^^^ `self` is only valid as the first argument of an associated function
6
7 error: aborting due to previous error
8