-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
AFIT no longer seems to play nice with lifetime GATs #113796
Copy link
Copy link
Closed
Labels
A-async-awaitArea: Async & AwaitArea: Async & AwaitA-implied-boundsArea: Implied bounds / inferred outlives-boundsArea: Implied bounds / inferred outlives-boundsA-lifetimesArea: Lifetimes / regionsArea: Lifetimes / regionsC-bugCategory: This is a bug.Category: This is a bug.F-async_fn_in_traitStatic async fn in traitsStatic async fn in traitsrequires-nightlyThis issue requires a nightly compiler in some way. When possible, use a F-* label instead.This issue requires a nightly compiler in some way. When possible, use a F-* label instead.
Metadata
Metadata
Assignees
Labels
A-async-awaitArea: Async & AwaitArea: Async & AwaitA-implied-boundsArea: Implied bounds / inferred outlives-boundsArea: Implied bounds / inferred outlives-boundsA-lifetimesArea: Lifetimes / regionsArea: Lifetimes / regionsC-bugCategory: This is a bug.Category: This is a bug.F-async_fn_in_traitStatic async fn in traitsStatic async fn in traitsrequires-nightlyThis issue requires a nightly compiler in some way. When possible, use a F-* label instead.This issue requires a nightly compiler in some way. When possible, use a F-* label instead.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
Done
Tracking issue: #91611
A few months ago I authored a complete example for a possible
AsyncIterator::lendmethod. This used to compile fine onrustc 1.71.0-nightly (f5559e338 2023-04-24), but it no longer does on the latest nightly. Here is a minimized repro:This gives the following error:
I have a feeling async traits no longer play nice with lifetime GATs?
Meta
Tested on the playground using the current nightly:
cc/ @rust-lang/wg-async, @compiler-errors