Incorrect suggestion for extra &
in pattern
#106182
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code:
The current output is:
Note that the suggestion is wrong, it removes the
(
but left in the matching)
. Applying that suggestion leads to invalid code:It should instead suggest
The text was updated successfully, but these errors were encountered: