mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
9 lines
238 B
Plaintext
9 lines
238 B
Plaintext
error: unexpected `self` parameter in function
|
|
--> $DIR/bare-fn.rs:1:16
|
|
|
|
|
LL | fn b(foo: u32, &mut self) { }
|
|
| ^^^^^^^^^ must be the first parameter of an associated function
|
|
|
|
error: aborting due to previous error
|
|
|