1 // ignore-debug: the debug assertions get in the way
5 // Ensure that trivial casts of vec elements are O(1)
7 // CHECK-LABEL: @vec_iterator_cast
9 pub fn vec_iterator_cast(vec: Vec<isize>) -> Vec<usize> {
12 vec.into_iter().map(|e| e as usize).collect()