impl Trait
should be able to capture long-lived associated types even if the trait contains a lifetime
#54385
Labels
A-impl-trait
Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.
A-lifetimes
Area: Lifetimes / regions
C-bug
Category: This is a bug.
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.
Basically, this should compile:
Thanks to @eddyb I can work around this, writing
but that is almost impossible to discover.
The text was updated successfully, but these errors were encountered: