Type error in async
function causes spurious "type must be known in this context" error
#73741
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-bug
Category: This is a bug.
D-verbose
Diagnostics: Too much output caused by a single piece of incorrect code.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following code:
produces the following errors:
The "type inside
async fn
body must be known in this context" error is spurious, and disappears if the1 = 2;
line is removed.The text was updated successfully, but these errors were encountered: