pub type Foo = foo::Foo
causes bad dead_code warnings on enum variants
#17632
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following code triggers
dead_code
warnings on each enum variant:This happens even though the enum is fully public. Commenting put the
pub type
line gets rid of the warnings.The text was updated successfully, but these errors were encountered: