derive
may only be applied to structs, enums and unions error should only show once per derive
#43927
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
The error
`derive` may only be applied to structs, enums and unions
currently fires for each derived trait in the attribute pointing at the trait it is implementing. It should instead fire once per attribute, pointing at thederive
.Minimal Code
Output
Expected Output
The text was updated successfully, but these errors were encountered: