Skip to content

Commit 4dbe392

Browse files
add test that wide ptr simd element type of *mut [u8] fails
1 parent 713b864 commit 4dbe392

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
error: monomorphising SIMD type `S` with a non-primitive-scalar (integer/float/pointer) element type `*mut [u8]`
2+
3+
error: aborting due to previous error
4+

0 commit comments

Comments
 (0)