summaryrefslogtreecommitdiffstats
path: root/tests/ui/macros/missing-bang-in-decl.fixed
blob: b1aa3298bfa561cb0d5b1f03d1879ef471655466 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// run-rustfix

#![allow(unused_macros)]

macro_rules! foo {
    //~^ ERROR expected `!` after `macro_rules`
    () => {};
}

macro_rules! bar {
    //~^ ERROR expected `!` after `macro_rules`
    //~^^ ERROR macro names aren't followed by a `!`
    () => {};
}

fn main() {}