rust/tests/ui/resolve/false-self-in-macro-issue-143134.stderr
xizheyin 236b392904
Return early when self resolve failure because of let self = ...
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
2025-07-03 23:47:19 +08:00

10 lines
379 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 | let self = ();
| ^^^^ `self` value is a keyword and may not be bound to variables or shadowed
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0424`.