about 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-11 09:03:18 +0000
committerbors <bors@rust-lang.org>2025-08-11 09:03:18 +0000
commit577166503aee7290e09374da21f4045c455acfd5 (patch)
treed59f60d60e5a9e39f62f2f6d2ff8eac97d9d996d /tests/ui/async-await/recursive-async-auto-trait-overflow.rs
parenta6620a45bd29575cce67b6a0ab2956aef105e324 (diff)
parent3ce0ee2555bb34c9dc51f0b4afc6a9dba61b26df (diff)
downloadrust-577166503aee7290e09374da21f4045c455acfd5.tar.gz
rust-577166503aee7290e09374da21f4045c455acfd5.zip
Auto merge of #145240 - Zalathar:rollup-7r97lia, r=Zalathar
Rollup of 5 pull requests

Successful merges:

 - rust-lang/rust#135331 (Reject relaxed bounds inside associated type bounds (ATB))
 - rust-lang/rust#144156 (Check coroutine upvars in dtorck constraint)
 - rust-lang/rust#145091 (`NllRegionVariableOrigin` remove `from_forall`)
 - rust-lang/rust#145194 (Ignore coroutine witness type region args in auto trait confirmation)
 - rust-lang/rust#145225 (Fix macro infinite recursion test to not trigger warning about semicolon in expr)

r? `@ghost`
`@rustbot` modify labels: rollup
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());
+}