diff options
| author | antoyo <antoyo@users.noreply.github.com> | 2024-07-05 16:09:54 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-05 16:09:54 -0400 |
| commit | 98ed962c7d3eebe12c97588e61245273d265e72f (patch) | |
| tree | 681f1289a682b8936629197879b64d2e8cea23ed /example/std_example.rs | |
| parent | 173773e4b473e6d0ec583328e37a6148fa0bb9fa (diff) | |
| parent | 5681c3cf681d0dc5acdafbd28eed1b8a7ad751fa (diff) | |
| download | rust-98ed962c7d3eebe12c97588e61245273d265e72f.tar.gz rust-98ed962c7d3eebe12c97588e61245273d265e72f.zip | |
Merge pull request #535 from rust-lang/sync_from_rust_2024_07_02
Sync from rust 2024/07/02
Diffstat (limited to 'example/std_example.rs')
| -rw-r--r-- | example/std_example.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/std_example.rs b/example/std_example.rs index ad69409eb65..8ab8fcc525e 100644 --- a/example/std_example.rs +++ b/example/std_example.rs @@ -1,5 +1,5 @@ #![allow(internal_features)] -#![feature(core_intrinsics, coroutines, coroutine_trait, is_sorted)] +#![feature(core_intrinsics, coroutines, coroutine_trait, is_sorted, stmt_expr_attributes)] #[cfg(feature="master")] #[cfg(target_arch="x86_64")] @@ -103,7 +103,7 @@ fn main() { test_simd(); } - Box::pin(move |mut _task_context| { + Box::pin(#[coroutine] move |mut _task_context| { yield (); }).as_mut().resume(0); |
