]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/span-covering-argument-1.rs
Auto merge of #60145 - little-dude:ip2, r=alexcrichton
[rust.git] / src / test / ui / macros / span-covering-argument-1.rs
1 macro_rules! bad {
2     ($s:ident whatever) => {
3         {
4             let $s = 0;
5             *&mut $s = 0;
6             //~^ ERROR cannot borrow `foo` as mutable, as it is not declared as mutable [E0596]
7         }
8     }
9 }
10
11 fn main() {
12     bad!(foo whatever);
13 }