blob: 67e683ac08a225b7ba3b53fc5b1492b9d921ff09 [file] [log] [blame] [edit]
//@ check-pass
//@ edition: 2021
#![feature(async_closure)]
// Make sure that we don't hit a query cycle when validating
// the by-move coroutine body for an async closure.
use std::future::Future;
async fn test<Fut: Future>(operation: impl Fn() -> Fut) {
operation().await;
}
pub async fn orchestrate_simple_crud() {
test(async || async {}.await).await;
}
fn main() {}