fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1// run-rustfix 2 3macro_rules! foo { 4 () => { 5 assert_eq!("A", "A"); 6 assert_eq!("B", "B"); 7 } 8 //~^^ ERROR macro expansion ignores token `assert_eq` and any following 9 //~| NOTE the usage of `foo!` is likely invalid in expression context 10} 11 12fn main() { 13 foo!(); 14 //~^ NOTE caused by the macro expansion here 15}