summaryrefslogtreecommitdiffstats
path: root/tests/ui/simd/type-generic-monomorphisation-empty.rs
blob: 2bf6641e9c91c0007e908b05568a4cec332c0a79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// build-fail

#![feature(repr_simd, platform_intrinsics)]

// error-pattern:monomorphising SIMD type `Simd<0>` of zero length

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

fn main() {
    let _ = Simd::<0>([]);
}