Spurious unused field warning when matching variants under a Self
scope
#63151
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.
This code should compile without warnings:
However, it produces the following one:
If we switch the pattern within
match
to the one that's commented out, the warning is gone.The text was updated successfully, but these errors were encountered: