about summary refs log tree commit diff
path: root/tests/ui/async-await/nested-in-impl.rs
blob: aebcf43c4276208e51577dfe2e987ec4f08a69d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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() { }