mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 17:14:50 +00:00
14 lines
258 B
Rust
14 lines
258 B
Rust
//@ check-pass
|
|
fn iter<'a>(data: &'a [usize]) -> impl Iterator<Item = usize> + 'a {
|
|
data.iter()
|
|
.map(
|
|
|x| x // fn(&'a usize) -> &'a usize
|
|
)
|
|
.map(
|
|
|x| *x // fn(&'a usize) -> usize
|
|
)
|
|
}
|
|
|
|
fn main() {
|
|
}
|