rust/tests/ui/simd/simd-lane-limit-err.rs
2025-09-23 20:47:34 -04:00

12 lines
234 B
Rust

//@ build-fail
//@ aux-crate:simd=simd-lane-limit.rs
extern crate simd;
use simd::Simd;
fn main() {
let _x: Simd<i32, 16> = Simd([0; 16]);
//~^ ERROR the SIMD type `simd::Simd<i32, 16>` has more elements than the limit 8
}