about summary refs log tree commit diff
path: root/tests/ui/simd/monomorphize-zero-length.rs
blob: d38870c572d9723b3e37422859b1d5fcf10e5476 (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 _empty = Simd([1.0; 0]);
}

//~? ERROR monomorphising SIMD type `Simd<f64, 0>` of zero length