Merge commit '710c67909d
' into sync_cg_clif-2023-11-25
This commit is contained in:
commit
aa51a27f8e
10 changed files with 452 additions and 71 deletions
|
@ -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(());
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue