Closed
Description
warning: unnecessary parentheses around `if let` head expression
--> src/lib.rs:2:19
|
2 | if let true = (false && true) {}
| ^^^^^^^^^^^^^^^ help: remove these parentheses
|
= note: #[warn(unused_parens)] on by default
If we remove the parens we correctly get:
error: ambiguous use of `&&`
--> src/lib.rs:2:19
|
2 | if let true = false && true {}
| ^^^^^^^^^^^^^ help: consider adding parentheses: `(false && true)`
|
= note: this will be a error until the `let_chains` feature is stabilized
= note: see rust-lang/rust#53668 for more information
The lint should take let_chains
into account.