mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-17 11:36:26 +00:00
11 lines
232 B
Rust
11 lines
232 B
Rust
//@ build-fail
|
|
|
|
#![feature(repr_simd)]
|
|
|
|
#[repr(simd)]
|
|
struct Simd<T, const N: usize>([T; N]);
|
|
|
|
fn main() {
|
|
let _too_big = Simd([1_u16; 54321]); //~ ERROR the SIMD type `Simd<u16, 54321>` has more elements than the limit 32768
|
|
}
|