"irrefutable_let_patterns" shouldn't fire for leading if-let guards #98361
Labels
A-lint
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.
sample code:
yields this warning:
However, the suggestion to move it out of the construct doesn't make sense, as
y
isn't bound until we've entered the match arm in the first place.The text was updated successfully, but these errors were encountered: