summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/macro/macro-expand-to-match-arm.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/macro/macro-expand-to-match-arm.stderr')
-rw-r--r--tests/ui/parser/macro/macro-expand-to-match-arm.stderr10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/parser/macro/macro-expand-to-match-arm.stderr b/tests/ui/parser/macro/macro-expand-to-match-arm.stderr
new file mode 100644
index 000000000..1a5f46968
--- /dev/null
+++ b/tests/ui/parser/macro/macro-expand-to-match-arm.stderr
@@ -0,0 +1,10 @@
+error: unexpected `,` in pattern
+ --> $DIR/macro-expand-to-match-arm.rs:11:25
+ |
+LL | arm!(None => {}),
+ | ^
+ |
+ = note: macros cannot expand to match arms
+
+error: aborting due to previous error
+