mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
12 lines
216 B
Rust
12 lines
216 B
Rust
//@ 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]);
|
|
}
|