Suggestions in errors ignore move
before closure arguments
#55891
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
move
before closure arguments
#55891
Source: https://travis-ci.org/rust-lang/cargo/jobs/453802414#L938-L949
The suggestion is to use:
let doit = |_| {
But I think it should be:
let doit = move |_| {
We should probably respect other modifiers like
static
andasync
, too.The text was updated successfully, but these errors were encountered: