Is this difference in lifetime elision for impl Trait
arguments between async and non-async function intended?
#85417
Labels
A-async-await
Area: Async & Await
A-impl-trait
Area: impl Trait. Universally / existentially quantified anonymous types with static dispatch.
A-lifetimes
Area: lifetime related
AsyncAwait-Triaged
Async-await issues that have been triaged during a working group meeting.
Projects
This compiles:
But this doesn't:
This difference strikes me as very odd. Is this intended? If so, why?
This is formulated as a question, but if I had to guess, I would classify this as oversight or bug -- that's why I created an issue instead of askig in the forum.
(originally asked here)
The text was updated successfully, but these errors were encountered: