about summary refs log tree commit diff
path: root/tests/ui/simd/monomorphize-too-long.rs
blob: 4fac987b0b5aa1deb331bf92ed46e98053269825 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ 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 monomorphising SIMD type `Simd<u16, 54321>` of length greater than 32768