summaryrefslogtreecommitdiffstats
path: root/tests/pretty/async.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pretty/async.rs')
-rw-r--r--tests/pretty/async.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/pretty/async.rs b/tests/pretty/async.rs
new file mode 100644
index 000000000..573e79bff
--- /dev/null
+++ b/tests/pretty/async.rs
@@ -0,0 +1,9 @@
+// pp-exact
+// pretty-compare-only
+// edition:2021
+
+async fn f() {
+ let first = async { 1 };
+ let second = async move { 2 };
+ join(first, second).await
+}