Async await mulitple lifetimes issue with Box
#68759
Labels
A-async-await
Area: Async & Await
AsyncAwait-Triaged
Async-await issues that have been triaged during a working group meeting.
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
Following code is not accepted ATM (play):
Error:
However, the following code is accepted:
I know one can workaround this by using
impl trait
with explicit lifetimes, but this is an ergonomics issue.The text was updated successfully, but these errors were encountered: