mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 11:34:11 +00:00
9 lines
236 B
Plaintext
9 lines
236 B
Plaintext
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
|
|
|