Improve error message foo was previously moved here because it has type bar, which is non-copyable
#32333
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.
I was recently faced with the following error message and it took me a few minutes to figure out what was wrong:
The error was that I was moving a value from inside a loop. I believe that the error message could be improved to
The text was updated successfully, but these errors were encountered: