Unhelpful borrowing suggested when wrongly constructing an unsized type #132041
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
The first suggestion doesn't help and will just suggest stacking
&[mut]
s without solving the problem. It should be removed.Other cases
No response
Rust Version
Anything else?
No response
The text was updated successfully, but these errors were encountered: