blob: aebcf43c4276208e51577dfe2e987ec4f08a69d8 [file] [log] [blame] [edit]
// 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() { }