summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/issues/issue-78600.rs
blob: 8aaeaecf3e1da11ddb7c81d4e5e20b252974d8a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// edition:2018

struct S<'a>(&'a i32);

impl<'a> S<'a> {
    async fn new(i: &'a i32) -> Result<Self, ()> {
        //~^ ERROR: `async fn`
        Ok(S(&22))
    }
}

fn main() {}