summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/misspelled-macro-rules.fixed
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/misspelled-macro-rules.fixed')
-rw-r--r--tests/ui/parser/misspelled-macro-rules.fixed13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/parser/misspelled-macro-rules.fixed b/tests/ui/parser/misspelled-macro-rules.fixed
new file mode 100644
index 000000000..62be913d8
--- /dev/null
+++ b/tests/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() {}