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