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