From a89083b8edbc6a0f8f300c7cc4eae215f5a9434c Mon Sep 17 00:00:00 2001 From: Michael Goulet Date: Sun, 10 Aug 2025 02:57:20 +0000 Subject: Add a test --- .../ui/async-await/recursive-async-auto-trait-overflow.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/ui/async-await/recursive-async-auto-trait-overflow.rs 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 . + +//@ edition: 2024 +//@ check-pass + +async fn process<'a>() { + Box::pin(process()).await; +} + +fn require_send(_: impl Send) {} + +fn main() { + require_send(process()); +} -- cgit 1.4.1-3-g733a5