summaryrefslogtreecommitdiffstats
path: root/tests/ui/lazy-type-alias-impl-trait/lifetime_inference.rs
blob: f75a88aa8f0645da33663b44e051b2a00a682f69 (plain)
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)
}