blob: 1068b28b3383883a54a2eff36f85703c2f92aa86 [file] [log] [blame] [edit]
//@ run-pass
fn test(it: &mut dyn Iterator<Item=i32>) {
for x in it {
assert_eq!(x, 1)
}
}
fn main() {
let v = vec![1];
test(&mut v.into_iter())
}