Error E0507 suggestion is invalid with let else
statements
#104838
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code (playground):
The current output is:
Ideally the output should look like:
An alternative would be to recommend using
ref
, but this would not be consistent with thematch
suggestion:Tested with Nightly version: 1.67.0-nightly (2022-11-23 70f8737)
The text was updated successfully, but these errors were encountered: