let (_ = 3;
causes suggestion to remove a paren that is only hypothetical
#103497
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:
The final warning, "unnecessary parentheses around pattern", is sus:
--error-format=json
.Found by fuzzing with a modified fuzz-rustc, combined with this very reasonable new assertion in rustc (added by @kper in #102922).
The text was updated successfully, but these errors were encountered: