rust/src/test/ui/issues/issue-49556.rs
2018-12-25 21:08:33 -07:00

14 lines
275 B
Rust

// 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() {
}