about summary refs log tree commit diff
path: root/tests/ui/parser/macro/macro-expand-to-match-arm.stderr
blob: f162f7dd47b1b4c93aacc16a75a40e7f325c97d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error: macro expansion ignores token `=>` and any following
  --> $DIR/macro-expand-to-match-arm.rs:3:18
   |
LL |         $pattern => $block
   |                  ^^
...
LL |         arm!(None => {}),
   |         ---------------- caused by the macro expansion here
   |
   = note: the usage of `arm!` is likely invalid in pattern context
   = note: macros cannot expand to match arms

error: aborting due to 1 previous error