Invalid suggestion for a reference of iterator #127590
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.
Code
Current output
Desired output
Rationale and extra context
Suggest
dereferencing
is not right here, if we use*&variant
, the code is still not right, and continue to suggest:And add more
.clone()
it will continue to suggest add.clone()
in the next compiling, this is another issue need to be fixed.Other cases
No response
Rust Version
Anything else?
No response
The text was updated successfully, but these errors were encountered: