mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-24 09:50:28 +00:00
10 lines
165 B
Rust
10 lines
165 B
Rust
//@ run-pass
|
|
#![allow(unused_mut)]
|
|
#![allow(unused_variables)]
|
|
|
|
fn foo<'a, I>(mut it: I) where I: Iterator<Item=&'a isize> {}
|
|
|
|
fn main() {
|
|
foo([1, 2].iter());
|
|
}
|