blob: d5c5c92e953dbcab4cb4071383cb75ef771d4f61 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//@ build-fail
//@ aux-crate:simd=simd-lane-limit.rs
extern crate simd;
use simd::Simd;
fn main() {
// test non-power-of-two, since #[repr(simd, packed)] has unusual layout
let _x: Simd<i32, 24> = Simd([0; 24]);
//~^ ERROR the SIMD type `simd::Simd<i32, 24>` has more elements than the limit 8
}
|