1
Fork 0

Merge commit '710c67909d' into sync_cg_clif-2023-11-25

This commit is contained in:
bjorn3 2023-11-25 10:05:52 +00:00
commit aa51a27f8e
10 changed files with 452 additions and 71 deletions

View file

@ -0,0 +1,16 @@
#![feature(coroutines, coroutine_trait)]
use std::ops::Coroutine;
use std::pin::Pin;
fn main() {
run_coroutine::<i32>();
}
fn run_coroutine<T>() {
let mut coroutine = || {
yield;
return;
};
Pin::new(&mut coroutine).resume(());
}