diff options
| author | Ben Kimock <kimockb@gmail.com> | 2024-12-04 21:03:12 -0500 |
|---|---|---|
| committer | Ben Kimock <kimockb@gmail.com> | 2024-12-06 16:42:09 -0500 |
| commit | 4d01ca8ae9e4597c11ee802dbddb56060cda99ca (patch) | |
| tree | fa5dbdd096f85aadea13d9035e0a6e1960605998 /example/polymorphize_coroutine.rs | |
| parent | e8ad19987d069c04a2f3246b32f15da8ce0cbabd (diff) | |
| download | rust-4d01ca8ae9e4597c11ee802dbddb56060cda99ca.tar.gz rust-4d01ca8ae9e4597c11ee802dbddb56060cda99ca.zip | |
Remove polymorphization
Diffstat (limited to 'example/polymorphize_coroutine.rs')
| -rw-r--r-- | example/polymorphize_coroutine.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/example/polymorphize_coroutine.rs b/example/polymorphize_coroutine.rs deleted file mode 100644 index 407da94c0f0..00000000000 --- a/example/polymorphize_coroutine.rs +++ /dev/null @@ -1,17 +0,0 @@ -#![feature(coroutines, coroutine_trait, stmt_expr_attributes)] - -use std::ops::Coroutine; -use std::pin::Pin; - -fn main() { - run_coroutine::<i32>(); -} - -fn run_coroutine<T>() { - let mut coroutine = #[coroutine] - || { - yield; - return; - }; - Pin::new(&mut coroutine).resume(()); -} |
