Typecheck error in body of async fn reported at point-of-use #73737
Labels
A-async-await
Area: Async & Await
AsyncAwait-Triaged
Async-await issues that have been triaged during a working group meeting.
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected to see this happen: A diagnostic would be issued at the line with the .forward call (or not at all).
Instead, this happened:
As you can see, this is reporting a typecheck error occurring in the implementation of forwarder, at the point of use of the async fn (where its implementation should be opaque).
Meta
Tested on the playground with both stable and nightly.
The text was updated successfully, but these errors were encountered: