unused_parens incorrectly lints on if let true = (false && true) {}
#60336
Labels
A-lint
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
F-let_chains
`#![feature(let_chains)]`
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
If we remove the parens we correctly get:
cc #53667 #53668
The lint should take
let_chains
into account.The text was updated successfully, but these errors were encountered: