Outlives requirements are not implied in the return type of async fn
, and generally for RPIT
#130935
Labels
A-async-await
Area: Async & Await
A-impl-trait
Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.
A-implied-bounds
Area: Implied bounds / inferred outlives-bounds
AsyncAwait-Triaged
Async-await issues that have been triaged during a working group meeting.
C-bug
Category: This is a bug.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
Split from #102682
The following doesn't compile:
it gives the following:
of course, a normal function is fine. We just don't imply that
T: '_
here because it lowers toimpl Future<Output = &'_ T>
The text was updated successfully, but these errors were encountered: