diff options
Diffstat (limited to 'tests/ui/macros/missing-bang-in-decl.fixed')
-rw-r--r-- | tests/ui/macros/missing-bang-in-decl.fixed | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/ui/macros/missing-bang-in-decl.fixed b/tests/ui/macros/missing-bang-in-decl.fixed new file mode 100644 index 000000000..b1aa3298b --- /dev/null +++ b/tests/ui/macros/missing-bang-in-decl.fixed @@ -0,0 +1,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() {} |