]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-26093.rs
Auto merge of #104013 - notriddle:notriddle/rustdoc-sizeof, r=GuillaumeGomez
[rust.git] / src / test / ui / issues / issue-26093.rs
1 macro_rules! not_a_place {
2     ($thing:expr) => {
3         $thing = 42;
4         //~^ ERROR invalid left-hand side of assignment
5         $thing += 42;
6         //~^ ERROR invalid left-hand side of assignment
7     }
8 }
9
10 fn main() {
11     not_a_place!(99);
12 }