Skip to content

Commit f5c35a2

Browse files
committed
fix async test
1 parent dd94c7c commit f5c35a2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

rust-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1e869133b9888dc5abde54f4f31cb797ed9c7874
1+
74d5c70b174f06843049af2d764ff57ddc81c81c

tests/run-pass/async-fn.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ pub async fn foo(x: &u32, y: u32) -> u32 {
1515
}
1616

1717
async fn add(x: u32, y: u32) -> u32 {
18-
async { x + y }.await
18+
let a = async { x + y };
19+
a.await
1920
}
2021

2122
async fn build_aggregate(a: u32, b: u32, c: u32, d: u32) -> u32 {

0 commit comments

Comments
 (0)