1 2 3 4 5 6 7 8
//compile-flags: --edition 2024 -Zunstable-options #![feature(gen_blocks)] fn foo() -> impl std::future::Future { //~ ERROR is not a future gen { yield 42 } } fn main() {}