]> git.lizzy.rs Git - rust.git/blob - src/test/ui/simd/type-wide-ptr.rs
Sync core::simd up to rust-lang/portable-simd@2e081db92aa3ee0a4563bc28ce01bdad5b1b2efd
[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 }