Suggest if let
when a failed if
block could be parsed as one
#44990
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
D-papercut
Diagnostics: An error or lint that needs small tweaks.
F-let_chains
`#![feature(let_chains)]`
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
WG-diagnostics
Working group: Diagnostics
When writing
if Some(x) = foo {}
, attempt to parse asif let Some(x) = foo {}
for better diagnostic output and if successful provide a suggestion to add thelet
.The text was updated successfully, but these errors were encountered: