Bad help in case of nested closures: consider adding 'move' even if closure is already marked as 'move' #101227
Labels
A-closures
Area: Closures (`|…| { … }`)
A-diagnostics
Area: Messages for errors, warnings, and lints
C-bug
Category: This is a bug.
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected to see a helpful error message.
Instead, this happened:
Following the compiler's advice and writing
move move
, this leads to:Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: