2024-04-17 17:08:58 +10:00
|
|
|
error: macro expansion ignores `=>` and any tokens following
|
2023-11-27 03:15:56 +01:00
|
|
|
--> $DIR/macro-expand-to-match-arm.rs:3:18
|
2023-07-24 04:55:47 +00:00
|
|
|
|
|
2023-11-27 03:15:56 +01:00
|
|
|
LL | $pattern => $block
|
|
|
|
| ^^
|
|
|
|
...
|
2023-07-24 04:55:47 +00:00
|
|
|
LL | arm!(None => {}),
|
2023-11-27 03:15:56 +01:00
|
|
|
| ---------------- caused by the macro expansion here
|
2023-07-24 04:55:47 +00:00
|
|
|
|
|
2023-11-27 03:15:56 +01:00
|
|
|
= note: the usage of `arm!` is likely invalid in pattern context
|
2023-11-27 00:50:51 +01:00
|
|
|
= note: macros cannot expand to match arms
|
2023-07-24 04:55:47 +00:00
|
|
|
|
2023-11-27 01:53:05 +01: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-24 04:55:47 +00:00
|
|
|
|