about summary refs log tree commit diff
path: root/tests/ui/simd/monomorphize-too-long.rs
blob: 9c8374151917828eccdfe62386229dfc2e6f9d60 (plain)
1
2
3
4
5
6
7
8
9
10
//@ build-fail

#![feature(repr_simd)]

#[repr(simd)]
struct Simd<T, const N: usize>([T; N]);

fn main() {
    let _too_big = Simd([1_u16; 54321]); //~ ERROR the SIMD type `Simd<u16, 54321>` has more elements than the limit 32768
}