Wrong error: return type references an anonymous lifetime #136841
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.
Code
Current output
Desired output
Rationale and extra context
That error (the second one) of course disappears when
Unknown
gets into scope.Note that this only happens with async, but not after manually desugaring it to
impl Future
.Other cases
Rust Version
Anything else?
No response
The text was updated successfully, but these errors were encountered: