]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-26093.rs
Rollup merge of #100861 - RalfJung:const-ice, r=oli-obk
[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 }