Point to closure when emitting 'cannot move out' for captured variable #87456
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: (playground):
The current output is:
However, we do not point to the closure, or explain why it implements
FnMut
. In a larger function, this can be confusing.The text was updated successfully, but these errors were encountered: