1 2 3 4 5 6 7 8
// build-pass (FIXME(62277): could be check-pass?) // #39665 fn batches(n: &u32) -> impl Iterator<Item=&u32> { std::iter::once(n) } fn main() {}