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

fn main() {
}