blob: f956197a61cf096b08ef72fb12f1c2110172da36 (
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 _empty = Simd([1.0; 0]); //~ ERROR the SIMD type `Simd<f64, 0>` has zero elements
}
|