fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
341 B15 linesraw
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}