summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/misspelled-macro-rules.fixed
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/parser/misspelled-macro-rules.fixed')
-rw-r--r--src/test/ui/parser/misspelled-macro-rules.fixed13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/ui/parser/misspelled-macro-rules.fixed b/src/test/ui/parser/misspelled-macro-rules.fixed
new file mode 100644
index 000000000..62be913d8
--- /dev/null
+++ b/src/test/ui/parser/misspelled-macro-rules.fixed
@@ -0,0 +1,13 @@
+// Regression test for issue #91227.
+
+// run-rustfix
+
+#![allow(unused_macros)]
+
+macro_rules! thing {
+//~^ ERROR: expected one of
+//~| HELP: perhaps you meant to define a macro
+ () => {}
+}
+
+fn main() {}