summaryrefslogtreecommitdiffstats
path: root/tests/ui/print_type_sizes/async.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/print_type_sizes/async.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/print_type_sizes/async.rs b/tests/ui/print_type_sizes/async.rs
new file mode 100644
index 000000000..1598b0696
--- /dev/null
+++ b/tests/ui/print_type_sizes/async.rs
@@ -0,0 +1,11 @@
+// compile-flags: -Z print-type-sizes --crate-type lib
+// edition:2021
+// build-pass
+// ignore-pass
+
+async fn wait() {}
+
+pub async fn test(arg: [u8; 8192]) {
+ wait().await;
+ drop(arg);
+}