rustc doesn't suggest missing .await before a ?
#71811
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.
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
When I compile the following code:
rustc says:
I think it should notice that the program is trying to apply
?
to a future, and suggest awaiting it.(If there is an existing issue for this, it is not labeled
A-async-await
andA-suggestion-diagnostics
.)The text was updated successfully, but these errors were encountered: