diff options
Diffstat (limited to 'tests/ui/macros/bang-after-name.rs')
-rw-r--r-- | tests/ui/macros/bang-after-name.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/macros/bang-after-name.rs b/tests/ui/macros/bang-after-name.rs new file mode 100644 index 000000000..7654d8c44 --- /dev/null +++ b/tests/ui/macros/bang-after-name.rs @@ -0,0 +1,8 @@ +// run-rustfix +#[allow(unused_macros)] + +macro_rules! foo! { //~ ERROR macro names aren't followed by a `!` + () => {}; +} + +fn main() {} |