Macros in match stms

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

No, you can't use a macro to build match arms

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.