Skip to content

Commit a9f14c1

Browse files
committed
Add pretty printer test for async blocks
Currently fails with: ---- [pretty] pretty/async.rs stdout ---- error: pretty-printed source does not match expected source expected: ------------------------------------------ // pp-exact // pretty-compare-only // edition:2021 async fn f() { let first = async { 1 }; let second = async move { 2 }; join(first, second).await } ------------------------------------------ actual: ------------------------------------------ // pp-exact // pretty-compare-only // edition:2021 async fn f() { let first = async { 1 }; let second = async move { 2 }; join(first, second).await } ------------------------------------------ diff: ------------------------------------------ 3 // edition:2021 4 5 async fn f() { - let first = async { 1 }; - let second = async move { 2 }; + let first = async { 1 }; + let second = async move { 2 }; 8 join(first, second).await 9 } 10
1 parent 772d51f commit a9f14c1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/test/pretty/async.rs

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// pp-exact
2+
// pretty-compare-only
3+
// edition:2021
4+
5+
async fn f() {
6+
let first = async { 1 };
7+
let second = async move { 2 };
8+
join(first, second).await
9+
}

0 commit comments

Comments
 (0)