blob: 92625cf7c28433039c761b3f052e205a71005a1d [file] [log] [blame]
// revisions: next old
//compile-flags: --edition 2024 -Zunstable-options
//[next] compile-flags: -Ztrait-solver=next
// check-pass
#![feature(gen_blocks)]
fn foo() -> impl Iterator<Item = u32> {
gen { yield 42 }
}
fn bar() -> impl Iterator<Item = i64> {
gen { yield 42 }
}
fn baz() -> impl Iterator<Item = i32> {
gen { yield 42 }
}
fn main() {}