blob: 69c4777ecb4430cac009e6739b1c1c735a01e446 [file]
//@ edition:2018
// Test that impl trait does not allow creating recursive types that are
// otherwise forbidden when using `async` and `await`.
//@ ignore-parallel-frontend query cycle
async fn rec_1() { //~ ERROR recursion in an async fn
rec_2().await;
}
async fn rec_2() {
rec_1().await;
}
fn main() {}