rust/tests/ui/impl-trait/issue-49556.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
257 B
Rust
Raw Normal View History

// check-pass
2018-04-06 09:17:25 -05:00
fn iter<'a>(data: &'a [usize]) -> impl Iterator<Item = usize> + 'a {
data.iter()
.map(
|x| x // fn(&'a usize) -> &'a usize
2018-04-06 09:17:25 -05:00
)
.map(
|x| *x // fn(&'a usize) -> usize
2018-04-06 09:17:25 -05:00
)
}
fn main() {
}