summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-49556.rs
blob: c8c172f0e2f7f419f0e1d40c9b5a9cdc3174fe9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// check-pass
fn iter<'a>(data: &'a [usize]) -> impl Iterator<Item = usize> + 'a {
    data.iter()
        .map(
            |x| x // fn(&'a usize) -> &'a usize
        )
        .map(
            |x| *x // fn(&'a usize) -> usize
        )
}

fn main() {
}