summaryrefslogtreecommitdiffstats
path: root/tests/ui/simd/type-wide-ptr.rs
blob: 88f62a07ea0d8be2a0a0dee74bc034bb15d9313d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// build-fail

#![feature(repr_simd)]

// error-pattern:monomorphising SIMD type `S` with a non-primitive-scalar (integer/float/pointer) element type `*mut [u8]`

#[repr(simd)]
struct S([*mut [u8]; 4]);

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