blob: 032360fbee03271d6c0e21d4f80125e0ca32e320 [file] [log] [blame]
//@ revisions: next old
//@ edition: 2024
//@[next] compile-flags: -Znext-solver
//@ 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() {}