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