Skip to content

Commit 05704ec

Browse files
committed
add testcase for issue 78600
1 parent e9920ef commit 05704ec

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Diff for: src/test/ui/async-await/issues/issue-78600.rs

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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() {}

0 commit comments

Comments
 (0)