filter lifetimes in impl Trait #44725
Labels
C-tracking-issue
Category: An issue tracking the progress of sth. like the implementation of an RFC
E-mentor
Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
WG-traits
Working group: Traits, https://internals.rust-lang.org/t/announcing-traits-working-group/6804
currently,
impl Trait
usages capture all lifetimes that are in scope (and this kind of fails around late-bound lifetimes). In the newer RFC, the proposal was that they should only capture those lifetimes that are used in the impl trait itself.Here are some mentoring instructions I wrote-up from before on how one might do this. But another way to think about this might be to think about implementing
abstract type
(perhaps in a limited form) and desugaring to that.However, work on this issue is blocked on #44727.
The text was updated successfully, but these errors were encountered: