]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/macro-in-expression-context.rs
Auto merge of #83152 - guswynn:jemallocator_part2, r=Mark-Simulacrum
[rust.git] / src / test / ui / macros / macro-in-expression-context.rs
1 // run-rustfix
2
3 macro_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
12 fn main() {
13     foo!()
14     //~^ NOTE caused by the macro expansion here
15 }