]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/recursive-async-impl-trait-type.rs
Rollup merge of #94006 - pierwill:upvar-field, r=nikomatsakis
[rust.git] / src / test / ui / async-await / recursive-async-impl-trait-type.rs
1 // edition:2018
2 // Test that impl trait does not allow creating recursive types that are
3 // otherwise forbidden when using `async` and `await`.
4
5 async fn recursive_async_function() -> () { //~ ERROR
6     recursive_async_function().await;
7 }
8
9 fn main() {}