#![feature(coroutines, coroutine_trait)] use std::ops::Coroutine; use std::pin::Pin; fn main() { run_coroutine::(); } fn run_coroutine() { let mut coroutine = || { yield; return; }; Pin::new(&mut coroutine).resume(()); }