E0084 and E0517 should show both repr attribute and struct #45886
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
You can trigger both errors by using
#[repr(packed)]
on an enum with no variants.The errors given out are:
E0517 shows the attribute, but does not show the enum. E0084 shows the enum, but does not show the attribute. Both errors should show both.
The text was updated successfully, but these errors were encountered: