Universe errors involving an opaque type results in hallucinations and unused bound vars #124472
Labels
A-async-await
Area: Async & Await
A-diagnostics
Area: Messages for errors, warnings, and lints
A-impl-trait
Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.
A-lifetimes
Area: Lifetimes / regions
AsyncAwait-Triaged
Async-await issues that have been triaged during a working group meeting.
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
fixed-by-async-closures
Fixed by `#![feature(async_closure)]`
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
Code (Rust ≥2018)
Current output
Desired output
Rationale and extra context
It's very confusing to see a second opaque type and suggestions "to await both futures" (???, there is only one). Ideally we would properly note that the generic can't name the lifetime or something.
Other cases
No response
Rust Version
Anything else?
#124471 has a simiular test case/issue but without the opaque types.
The text was updated successfully, but these errors were encountered: