summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/conservative_impl_trait.rs
blob: 4f25e57be566bd3ba1be6569e493b6ca79f84d3a (plain)
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() {}