serde icon indicating copy to clipboard operation
serde copied to clipboard

Better diagnostics for `#[serde(flatten)]` on an enum variant

Open i509VCB opened this issue 3 years ago • 0 comments

#[serde(flatten)] is not allowed on an enum per the documentation, there could be an error that states this more clearly.

At the moment the error is:

unknown serde variant attribute `flatten`

It could be changed to something like

`flatten` is not allowed in enums.

i509VCB avatar Aug 31 '22 04:08 i509VCB