Unhelpful span in async type inference error #62382
Labels
A-async-await
Area: Async & Await
A-diagnostics
Area: Messages for errors, warnings, and lints
A-inference
Area: Type inference
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.
The following snippet (playground):
Gives the following error message:
This error is due to the unknown type of
a
. However, nothing in the span indicates that this is the case, making it extremely unclear what the proper fix is.The text was updated successfully, but these errors were encountered: