AFIT no longer seems to play nice with lifetime GATs #113796
Labels
A-async-await
Area: Async & Await
A-implied-bounds
Area: Implied bounds / inferred outlives-bounds
A-lifetimes
Area: Lifetimes / regions
C-bug
Category: This is a bug.
F-async_fn_in_trait
Static async fn in traits
requires-nightly
This issue requires a nightly compiler in some way.
Tracking issue: #91611
A few months ago I authored a complete example for a possible
AsyncIterator::lend
method. 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
The text was updated successfully, but these errors were encountered: