rust/tests/ui/resolve/false-self-in-macro-issue-143134.rs
xizheyin 000f038e99 Add ui test resolve/false-self-in-macro-issue-143134.rs
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
2025-07-03 23:11:57 +08:00

11 lines
196 B
Rust

trait T {
fn f(self);
}
impl T for () {
fn f(self) {
let self = (); //~ ERROR expected unit struct, unit variant or constant, found local variable `self`
}
}
fn main() {}