about summary refs log tree commit diff
path: root/src/test/ui/async-await/nested-in-impl.rs
blob: 3c82160595f1dfda847cd6cd0c10008213950690 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Test that async fn works when nested inside of
// impls with lifetime parameters.
//
// check-pass
// edition:2018

#![feature(async_await)]

struct Foo<'a>(&'a ());

impl<'a> Foo<'a> {
    fn test() {
        async fn test() {}
    }
}

fn main() { }