about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2025-08-10 02:57:20 +0000
committerlcnr <rust@lcnr.de>2025-08-14 16:31:12 +0200
commita89083b8edbc6a0f8f300c7cc4eae215f5a9434c (patch)
tree96bb1b9fea6fa9b7665a3541d3f4de7ae6f0f20e
parent82ed949d2c230409bd3d01eb3f03d831a7197b9c (diff)
downloadrust-a89083b8edbc6a0f8f300c7cc4eae215f5a9434c.tar.gz
rust-a89083b8edbc6a0f8f300c7cc4eae215f5a9434c.zip
Add a test
-rw-r--r--tests/ui/async-await/recursive-async-auto-trait-overflow.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/async-await/recursive-async-auto-trait-overflow.rs b/tests/ui/async-await/recursive-async-auto-trait-overflow.rs
new file mode 100644
index 00000000000..716600ce472
--- /dev/null
+++ b/tests/ui/async-await/recursive-async-auto-trait-overflow.rs
@@ -0,0 +1,14 @@
+// Regression test for <https://github.com/rust-lang/rust/issues/145151>.
+
+//@ edition: 2024
+//@ check-pass
+
+async fn process<'a>() {
+    Box::pin(process()).await;
+}
+
+fn require_send(_: impl Send) {}
+
+fn main() {
+    require_send(process());
+}