Bad diagnostics when using async fn's and attributes #102823
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
rustexplorer (rustexplorer is a playground alternative, I'm using it because play.rust-lang.org doesn't exposes
tracing
attributes)This is probably related to some other issues, like #71968, but I decided to open it either way because the diagnostics differ from the async and sync version.
Simplifying my real case, given some struct:
I've tried implementing some instrumented associated async fn and hit check before finishing the code:
which gave me weird diagnostics, especially the last one:
but, to my surprise, testing with the sync version:
outputs:
I expect the async version outputs the same diagnostics as the sync version.
The text was updated successfully, but these errors were encountered: