Unused variables inside if-let guards don't get detected #119383
Labels
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
F-if_let_guard
`#![feature(if_let_guard)]`
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I expected the following code to fail to compile due to the unused variable
unused
but it actually compiled successfully:The text was updated successfully, but these errors were encountered: