]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/issues/issue-78600.rs
Merge commit '39683d8eb7a32a74bea96ecbf1e87675d3338506' into sync_cg_gcc-2022-03-26
[rust.git] / src / test / ui / async-await / issues / issue-78600.rs
1 // edition:2018
2
3 struct S<'a>(&'a i32);
4
5 impl<'a> S<'a> {
6     async fn new(i: &'a i32) -> Result<Self, ()> {
7         //~^ ERROR: `async fn`
8         Ok(S(&22))
9     }
10 }
11
12 fn main() {}