Skip to content

Commit 7278385

Browse files
committed
Auto merge of #946 - RalfJung:rustup, r=oli-obk
fix async test Test got broken by rust-lang/rust#64292.
2 parents dd94c7c + f5c35a2 commit 7278385

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)