Closed
Description
fn main() {
async move { };
}
yields this error:
error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found keyword `move`
--> src/main.rs:2:11
|
2 | async move { };
| ^^^^ expected one of 8 possible tokens
#71783 added a hint about the edition for async {}
, but it seems that async move {}
doesn't get it.
Metadata
Metadata
Assignees
Labels
Area: Async & AwaitArea: Messages for errors, warnings, and lintsAsync-await issues that have been triaged during a working group meeting.Category: An issue proposing an enhancement or a PR with one.Diagnostics: An error or lint that should account for edition differences.Relevant to the compiler team, which will review and decide on the PR/issue.