rust/tests/ui/invalid-self-argument/trait-fn.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
236 B
Plaintext
Raw Normal View History

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) {}
| ^^^^ must be the first parameter of an associated function
2018-11-16 12:35:13 -06:00
error: aborting due to previous error