Wrong block referenced when emitting E0728 #63398
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.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following code (Playground link)
Emits the incorrect error:
It should point to the block belonging to
fn main
and not the closure from the line above the usage ofawait
.The text was updated successfully, but these errors were encountered: