]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/async-await/recursive-async-impl-trait-type.rs
2 // Test that impl trait does not allow creating recursive types that are
3 // otherwise forbidden when using `async` and `await`.
5 async
fn recursive_async_function() -> () { //~ ERROR
6 recursive_async_function().await
;