Sign in
android
/
toolchain
/
rustc
/
15a6560abe9880705f51d219c1fa94f880dbaf35
/
.
/
src
/
test
/
ui
/
async-await
/
nested-in-impl.rs
blob: 76ed827d5973e4e9b4427840af9eda54a70c0a90 [
file
] [
log
] [
blame
]
// Test that async fn works when nested inside of
// impls with lifetime parameters.
//
// check-pass
// edition:2018
struct
Foo
<
'a>(&'
a
());
impl
<
'a> Foo<'
a
>
{
fn
test
()
{
async
fn
test
()
{}
}
}
fn
main
()
{
}