allow(unused_variables) doesn't work on struct field bindings in patterns #138428
Labels
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
A-patterns
Relating to patterns and pattern matching
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen:
no lint
Instead, this happened:
unused_variables lint occurs even though it is allowed
Meta
rustc version 1.85.0
Playground
The text was updated successfully, but these errors were encountered: