mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-03 14:34:58 +00:00
13 lines
550 B
Plaintext
13 lines
550 B
Plaintext
error[E0424]: expected unit struct, unit variant or constant, found local variable `self`
|
|
--> $DIR/false-self-in-macro-issue-143134.rs:6:13
|
|
|
|
|
LL | / fn f(self) {
|
|
LL | | let self = ();
|
|
| | ^^^^ `self` value is a keyword and may not be bound to variables or shadowed
|
|
LL | | }
|
|
| |_____- this function has a `self` parameter, but a macro invocation can only access identifiers it receives from parameters
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0424`.
|