// revisions: next old //compile-flags: --edition 2024 -Zunstable-options //[next] compile-flags: -Ztrait-solver=next // check-pass #![feature(gen_blocks)] fn foo() -> impl Iterator { gen { yield 42 } } fn bar() -> impl Iterator { gen { yield 42 } } fn baz() -> impl Iterator { gen { yield 42 } } fn main() {}