summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/nested-in-impl.rs
blob: 76ed827d5973e4e9b4427840af9eda54a70c0a90 (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() { }