]> git.lizzy.rs Git - rust.git/blob - src/test/ui/simd/type-wide-ptr.rs
Merge commit '370c397ec9169809e5ad270079712e0043514240' into sync_cg_clif-2022-03-20
[rust.git] / src / test / ui / simd / type-wide-ptr.rs
1 // build-fail
2
3 #![feature(repr_simd)]
4
5 // error-pattern:monomorphising SIMD type `S` with a non-primitive-scalar (integer/float/pointer) element type `*mut [u8]`
6
7 #[repr(simd)]
8 struct S([*mut [u8]; 4]);
9
10 fn main() {
11     let _v: Option<S> = None;
12 }