1 2 3 4 5 6 7
// check-pass fn main() {} fn nth<I: Iterator>(iter: &mut I, step: usize) -> impl FnMut() -> Option<I::Item> + '_ { move || iter.nth(step) }