summaryrefslogtreecommitdiffstats
path: root/tests/ui/simd/type-generic-monomorphisation-non-primitive.rs
blob: 0bc73b155801eb5830b453785b98cbfe4b9eba20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// build-fail

#![feature(repr_simd)]

struct E;

// error-pattern:monomorphising SIMD type `S<E>` with a non-primitive-scalar (integer/float/pointer) element type `E`

#[repr(simd)]
struct S<T>([T; 4]);

fn main() {
    let _v: Option<S<E>> = None;
}