summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-26093.rs
blob: c838515caf997e6f6a8ba6ad2a06ea124256354a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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);
}