1 // ignore-debug: the debug assertions get in the way
3 // min-llvm-version: 11.0
6 // Ensure that trivial casts of vec elements are O(1)
8 // CHECK-LABEL: @vec_iterator_cast
10 pub fn vec_iterator_cast(vec: Vec<isize>) -> Vec<usize> {
13 vec.into_iter().map(|e| e as usize).collect()