Provide hint for assignment to &mut variable that should use *
#36251
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.
Consider the following code:
Compiling this produces the following error:
Ideally, this error should include a suggestion that the user probably meant to assign to
*r
.The text was updated successfully, but these errors were encountered: