Unhelpful error message when awaiting an async closure while forgetting the brackets #65923
Labels
A-async-await
Area: Async & Await
A-diagnostics
Area: Messages for errors, warnings, and lints
AsyncAwait-Triaged
Async-await issues that have been triaged during a working group meeting.
F-async_closure
`#![feature(async_closure)]`
P-low
Low priority
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
(Playground link
Obviously
async_closure().await
was what I should have written. It would be great if rustc suggested that maybe I shoudl try calling the closure rather than the error it currently offers:The text was updated successfully, but these errors were encountered: