summaryrefslogtreecommitdiffstats
path: root/src/test/ui/impl-trait/fallback.rs
blob: 1e6eb5bb355888c04904570ec6cd6232dd1814db (plain)
1
2
3
4
5
6
7
8
9
// check-pass

fn take_edge_counters(
    x: &mut Option<Vec<i32>>,
) -> Option<impl Iterator<Item = i32>> {
    x.take().map_or(None, |m| Some(m.into_iter()))
}

fn main() {}