From 4d01ca8ae9e4597c11ee802dbddb56060cda99ca Mon Sep 17 00:00:00 2001 From: Ben Kimock Date: Wed, 4 Dec 2024 21:03:12 -0500 Subject: Remove polymorphization --- example/polymorphize_coroutine.rs | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 example/polymorphize_coroutine.rs (limited to 'example/polymorphize_coroutine.rs') 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::(); -} - -fn run_coroutine() { - let mut coroutine = #[coroutine] - || { - yield; - return; - }; - Pin::new(&mut coroutine).resume(()); -} -- cgit 1.4.1-3-g733a5