//compile-flags: --edition 2024 -Zunstable-options #![feature(coroutines, coroutine_trait, gen_blocks)] use std::ops::Coroutine; fn foo() -> impl Coroutine { //~ ERROR: Coroutine` is not satisfied gen { yield 42 } } fn bar() -> impl Coroutine { //~ ERROR: Coroutine` is not satisfied gen { yield 42 } } fn baz() -> impl Coroutine { //~ ERROR: Coroutine` is not satisfied gen { yield 42 } } fn main() {}