mirror of https://github.com/rust-lang/rust
15 lines
290 B
Rust
15 lines
290 B
Rust
//@ build-fail
|
|
|
|
#![feature(repr_simd, 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![]));
|
|
}
|