Error message for reuse of variable moved into a closure uses closure type instead of variable type #24357
Labels
A-closures
Area: Closures (`|…| { … }`)
A-diagnostics
Area: Messages for errors, warnings, and lints
Presumably the error message should say
because it has type
NoCopywhich is non-copyable
.The text was updated successfully, but these errors were encountered: