]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lazy-type-alias-impl-trait/lifetime_inference.rs
Rollup merge of #100479 - compiler-errors:argument-type-error-improvements, r=lcnr
[rust.git] / src / test / ui / lazy-type-alias-impl-trait / lifetime_inference.rs
1 // check-pass
2
3 fn main() {}
4
5 fn nth<I: Iterator>(iter: &mut I, step: usize) -> impl FnMut() -> Option<I::Item> + '_ {
6     move || iter.nth(step)
7 }