rust/tests/ui/issues/issue-26093.rs
2023-01-11 09:32:08 +00:00

12 lines
250 B
Rust

macro_rules! not_a_place {
($thing:expr) => {
$thing = 42;
//~^ ERROR invalid left-hand side of assignment
$thing += 42;
//~^ ERROR invalid left-hand side of assignment
}
}
fn main() {
not_a_place!(99);
}