mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00
13 lines
209 B
Rust
13 lines
209 B
Rust
//@ 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
|