// compile-flags: -Z print-type-sizes --crate-type=lib // build-pass // ignore-pass #![feature(coroutines, coroutine_trait)] use std::ops::Coroutine; fn coroutine(array: [u8; C]) -> impl Coroutine { move |()| { yield (); let _ = array; } } pub fn foo() { let _ = coroutine([0; 8192]); }