Cycle detected in async fn but not with -> impl Future #119727
Labels
A-async-await
Area: Async & Await
AsyncAwait-Triaged
Async-await issues that have been triaged during a working group meeting.
F-return_position_impl_trait_in_trait
`#![feature(return_position_impl_trait_in_trait)]`
I-cycle
Issue: A query cycle occurred while none was expected
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
WG-async
Working group: Async & await
Uh oh!
There was an error while loading. Please reload this page.
Here is the reproducer:
(playground link)
Interestingly, if you swap the any/all, then the version with
-> impl Sized + Send + Future<Output = ()>
does compile properly.So something in
async fn
is not just desugared as-> impl Sized + Send + Future
, but I'm not sure why that is?Possibly related to:
async fn
w/ auto trait obligations. #104343The text was updated successfully, but these errors were encountered: