summaryrefslogtreecommitdiffstats
path: root/src/test/ui/macros/bang-after-name.fixed
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/macros/bang-after-name.fixed8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/macros/bang-after-name.fixed b/src/test/ui/macros/bang-after-name.fixed
new file mode 100644
index 000000000..c107ddd5d
--- /dev/null
+++ b/src/test/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() {}