Async-related type error messages defy expectations (in span location) #65180
Labels
A-async-await
Area: Async & Await
A-diagnostics
Area: Messages for errors, warnings, and lints
AsyncAwait-Polish
Async-await issues that are part of the "polish" area
AsyncAwait-Triaged
Async-await issues that have been triaged during a working group meeting.
C-bug
Category: This is a bug.
D-papercut
Diagnostics: An error or lint that needs small tweaks.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Consider for example this code (using
hyper-0.13.0
):This code will fail to compile due to types which cannot be fully inferred, with an error like this:
However neither of these spans are anywhere near to the real problem which is the fact that
Err
variant is not inferred forOk(hyper::service::service_fn(...))
.The text was updated successfully, but these errors were encountered: