-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
if_let_guard + let_chains: used binding is possibly-uninitialized #118593
Copy link
Copy link
Closed
Labels
A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.C-bugCategory: This is a bug.Category: This is a bug.F-if_let_guard`#![feature(if_let_guard)]``#![feature(if_let_guard)]`F-let_chains`#![feature(let_chains)]``#![feature(let_chains)]`T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.C-bugCategory: This is a bug.Category: This is a bug.F-if_let_guard`#![feature(if_let_guard)]``#![feature(if_let_guard)]`F-let_chains`#![feature(let_chains)]``#![feature(let_chains)]`T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
I tried this code:
I expected to see this happen: the code compiles.
Instead, this happened: it doesn't compile.
If I remove the
&& true, it does compile.Meta
rustc --version --verbose: