2019-05-23 15:10:24 -05:00
|
|
|
error: unexpected `self` parameter in function
|
2018-11-16 12:35:13 -06:00
|
|
|
--> $DIR/trait-fn.rs:4:20
|
|
|
|
|
|
|
|
|
LL | fn c(foo: u32, self) {}
|
2020-02-02 04:10:27 -06:00
|
|
|
| ^^^^ must be the first parameter of an associated function
|
2018-11-16 12:35:13 -06:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|