// error-pattern: out-of-bounds #![feature(portable_simd)] use std::simd::*; fn main() { unsafe { let vec: &[i16] = &[10, 11, 12, 13, 14, 15, 16, 17, 18]; let idxs = Simd::from_array([9, 3, 0, 17]); let _result = Simd::gather_select_unchecked(&vec, Mask::splat(true), idxs, Simd::splat(0)); } }