Is it valid to use macros in match statements like so?:
match field {
FieldType::a => {
...
}
FieldType::b => {
...
}
field_u32_macro_match_all!( FieldType::c )
field_u16_macro_match_all!( FieldType::d, FieldType::e )
}
I get a strange error:
error: expected one of `=>`, `if`, or `|`, found `FieldType`
|
308 | FieldType::e)
| - expected one of `=>`, `if`, or `|` here
309 | FieldType::e => {
| ^^^^^^^^^^^^^^ unexpected token