summary refs log tree commit diff
path: root/tests/ui/async-await/recursive-async-auto-trait-overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-08-19 08:04:59 +0000
committerbors <bors@rust-lang.org>2025-08-19 08:04:59 +0000
commit49fc0cc3e9ae608b4938b2c7640fc6106446a9b6 (patch)
treecc9c57ea04689c1565a9abfd11cdd77d31285c8e /tests/ui/async-await/recursive-async-auto-trait-overflow.rs
parent47b72a3455b75c1e33aa211e516255752352681e (diff)
parenta89083b8edbc6a0f8f300c7cc4eae215f5a9434c (diff)
downloadrust-49fc0cc3e9ae608b4938b2c7640fc6106446a9b6.tar.gz
rust-49fc0cc3e9ae608b4938b2c7640fc6106446a9b6.zip
Auto merge of #145395 - lcnr:review-coroutine-witness, r=petrochenkov
[BETA] Revert "Remove the witness type from coroutine args"

fixes rust-lang/rust#145151 and rust-lang/rust#145288

we do not revert on nightly as its instead fixed by rust-lang/rust#145194 and rust-lang/rust#145338.

See the discussion in https://rust-lang.zulipchat.com/#narrow/channel/238009-t-compiler.2Fmeetings/topic/.5Bweekly.5D.202025-08-14/near/534490313
Diffstat (limited to 'tests/ui/async-await/recursive-async-auto-trait-overflow.rs')
-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());
+}