mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
11 lines
305 B
Plaintext
11 lines
305 B
Plaintext
error: `self` parameter is only allowed in associated functions
|
|
--> $DIR/bare-fn-start.rs:1:6
|
|
|
|
|
LL | fn a(&self) { }
|
|
| ^^^^^ not semantically valid as function parameter
|
|
|
|
|
= note: associated functions are those in `impl` or `trait` definitions
|
|
|
|
error: aborting due to 1 previous error
|
|
|