-
Notifications
You must be signed in to change notification settings - Fork 13.3k
improve error for missing await #84166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
A-async-await
Area: Async & Await
A-diagnostics
Area: Messages for errors, warnings, and lints
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
I think the output should be more aggressive. For example:
|
Another alternative would be to explicitly state what the
|
Related, if not a duplicate, to #80658 |
The note has changed on nightly/beta, from the PR linked to that isssue:
|
I agree this is something of a duplicate. I can move the conversation over there. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-async-await
Area: Async & Await
A-diagnostics
Area: Messages for errors, warnings, and lints
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code:
The current (pretty decent) output is:
The text was updated successfully, but these errors were encountered: