fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
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}