summaryrefslogtreecommitdiffstats
path: root/tests/ui/invalid-self-argument/trait-fn.stderr
blob: b9887af962cbc1a898801fe21e54127a58ecb77c (plain)
1
2
3
4
5
6
7
8
error: unexpected `self` parameter in function
  --> $DIR/trait-fn.rs:4:20
   |
LL |     fn c(foo: u32, self) {}
   |                    ^^^^ must be the first parameter of an associated function

error: aborting due to previous error