]> git.lizzy.rs Git - rust.git/blob - src/test/ui/simd/type-wide-ptr.rs
Rollup merge of #88794 - sunfishcode:sunfishcode/try-clone, r=joshtriplett
[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 }