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