1
Fork 0

add testcase for issue 78600

This commit is contained in:
csmoe 2021-02-12 16:50:25 +08:00
parent e9920ef774
commit 05704ec79a

View file

@ -0,0 +1,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() {}