Incorrect dead-code-warning on enum when using Self #69018
Labels
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following code produces an incorrect dead code warning ("warning: variant is never constructed:
Variant
"), when using theSelf
keyword. When using the enumeration name (E
), there is no warning.Tested versions:
This issue has been assigned to @matprec via this comment.
The text was updated successfully, but these errors were encountered: