Recover from mutable variable declaration where mut
is placed before let
#100197
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:
The current output is:
Ideally the output should suggest to move the
mut
to behind thelet
, since the current error message does not identify the problem accurately.The text was updated successfully, but these errors were encountered: