Sign in
fuchsia
/
third_party
/
rust
/
346aec9b02f3c74f3fce97fd6bda24709d220e49
/
.
/
src
/
test
/
ui
/
async-await
/
recursive-async-impl-trait-type.rs
blob: aa7733194587da20ba4238a02da39f729f0445a0 [
file
] [
log
] [
blame
]
// edition:2018
// Test that impl trait does not allow creating recursive types that are
// otherwise forbidden when using `async` and `await`.
async
fn
recursive_async_function
()
->
()
{
//~ ERROR
recursive_async_function
().
await
;
}
fn
main
()
{}