blob: 12f9d65d77af0242f2749ebf0969cbeaad32d6c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// build-fail
#![feature(repr_simd, platform_intrinsics)]
// error-pattern:monomorphising SIMD type `Simd2<X>` with a non-primitive-scalar (integer/float/pointer) element type `X`
struct X(Vec<i32>);
#[repr(simd)]
struct Simd2<T>(T, T);
fn main() {
let _ = Simd2(X(vec![]), X(vec![]));
}
|