diff options
| author | Michael Goulet <michael@errs.io> | 2024-11-06 17:53:59 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-12-13 00:04:56 +0000 |
| commit | c605c84be8780e8f85379dc35f4567d6c64908d8 (patch) | |
| tree | 1d16f0e7628f7afb02573ff730e21de7c10e3323 /tests/ui/layout | |
| parent | d4025ee454169fbd22f5773f54348310ab6a47bb (diff) | |
| download | rust-c605c84be8780e8f85379dc35f4567d6c64908d8.tar.gz rust-c605c84be8780e8f85379dc35f4567d6c64908d8.zip | |
Stabilize async closures
Diffstat (limited to 'tests/ui/layout')
| -rw-r--r-- | tests/ui/layout/post-mono-layout-cycle-2.rs | 2 | ||||
| -rw-r--r-- | tests/ui/layout/post-mono-layout-cycle-2.stderr | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/tests/ui/layout/post-mono-layout-cycle-2.rs b/tests/ui/layout/post-mono-layout-cycle-2.rs index 2159dee7463..2daac12d7ac 100644 --- a/tests/ui/layout/post-mono-layout-cycle-2.rs +++ b/tests/ui/layout/post-mono-layout-cycle-2.rs @@ -1,8 +1,6 @@ //@ build-fail //@ edition: 2021 -#![feature(async_closure)] - use std::future::Future; use std::pin::pin; use std::task::*; diff --git a/tests/ui/layout/post-mono-layout-cycle-2.stderr b/tests/ui/layout/post-mono-layout-cycle-2.stderr index 2e8d237844e..d8c51deffe3 100644 --- a/tests/ui/layout/post-mono-layout-cycle-2.stderr +++ b/tests/ui/layout/post-mono-layout-cycle-2.stderr @@ -1,5 +1,5 @@ error[E0733]: recursion in an async fn requires boxing - --> $DIR/post-mono-layout-cycle-2.rs:30:5 + --> $DIR/post-mono-layout-cycle-2.rs:28:5 | LL | / async fn iter<T>(&mut self, iterator: T) LL | | @@ -13,7 +13,7 @@ LL | Blah::iter(self, iterator).await = note: a recursive `async fn` call must introduce indirection such as `Box::pin` to avoid an infinitely sized future note: the above error was encountered while instantiating `fn Wrap::<()>::ice` - --> $DIR/post-mono-layout-cycle-2.rs:56:9 + --> $DIR/post-mono-layout-cycle-2.rs:54:9 | LL | t.ice(); | ^^^^^^^ |
