]>
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 #![feature(async_await)]
7 async
fn recursive_async_function() -> () { //~ ERROR
8 recursive_async_function().await
;