blob: 44b4cfc0bcfab5524a91f8c9c06d0d3ce046f812 [file] [log] [blame] [edit]
//@ build-fail
//@ error-pattern: monomorphising SIMD type `Simd<f64, 0>` of zero length
#![feature(repr_simd)]
#[repr(simd)]
struct Simd<T, const N: usize>([T; N]);
fn main() {
let _empty = Simd([1.0; 0]);
}