diff options
| author | Michael Goulet <michael@errs.io> | 2025-08-10 02:17:31 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-08-10 02:21:48 +0000 |
| commit | b4aa629186b77357e3633284ec12db66dc28efd8 (patch) | |
| tree | e16a6f11859e8c2986ba7af2979c76a38a3976b0 /tests/ui/async-await/recursive-async-auto-trait-overflow.rs | |
| parent | ca77504943887037504c7fc0b9bf06dab3910373 (diff) | |
| download | rust-b4aa629186b77357e3633284ec12db66dc28efd8.tar.gz rust-b4aa629186b77357e3633284ec12db66dc28efd8.zip | |
Ignore coroutine witness type region args in auto trait confirmation
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.rs | 14 |
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()); +} |
