When I add #[subenum(Sub)] to the top of the enum before declaring its variant, an error message would appear:
expected pattern, found `,`
This error is confusing. I suggest improving this error message to points out the cause directly, or make it disappear.
When I add
#[subenum(Sub)]to the top of the enum before declaring its variant, an error message would appear:This error is confusing. I suggest improving this error message to points out the cause directly, or make it disappear.