2024-04-17 02:08:58 -05:00
|
|
|
error: macro expansion ignores `=>` and any tokens following
|
2023-11-26 20:15:56 -06:00
|
|
|
--> $DIR/macro-expand-to-match-arm.rs:3:18
|
2023-07-23 23:55:47 -05:00
|
|
|
|
|
2023-11-26 20:15:56 -06:00
|
|
|
LL | $pattern => $block
|
|
|
|
| ^^
|
|
|
|
...
|
2023-07-23 23:55:47 -05:00
|
|
|
LL | arm!(None => {}),
|
2023-11-26 20:15:56 -06:00
|
|
|
| ---------------- caused by the macro expansion here
|
2023-07-23 23:55:47 -05:00
|
|
|
|
|
2023-11-26 20:15:56 -06:00
|
|
|
= note: the usage of `arm!` is likely invalid in pattern context
|
2023-11-26 17:50:51 -06:00
|
|
|
= note: macros cannot expand to match arms
|
2023-07-23 23:55:47 -05:00
|
|
|
|
2023-11-26 18:53:05 -06:00
|
|
|
error: `match` arm with no body
|
|
|
|
--> $DIR/macro-expand-to-match-arm.rs:14:9
|
|
|
|
|
|
|
|
|
LL | arm!(None => {}),
|
|
|
|
| ^^^^^^^^^^^^^^^^- help: add a body after the pattern: `=> todo!(),`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2023-07-23 23:55:47 -05:00
|
|
|
|