2024-08-22 01:28:20 -07:00
|
|
|
//@ build-fail
|
|
|
|
|
|
|
|
|
|
#![feature(repr_simd)]
|
|
|
|
|
|
|
|
|
|
#[repr(simd)]
|
|
|
|
|
struct Simd<T, const N: usize>([T; N]);
|
|
|
|
|
|
|
|
|
|
fn main() {
|
2025-09-16 02:23:24 -04:00
|
|
|
let _too_big = Simd([1_u16; 54321]); //~ ERROR the SIMD type `Simd<u16, 54321>` has more elements than the limit 32768
|
2024-08-22 01:28:20 -07:00
|
|
|
}
|