Skip to content

Commit c17a705

Browse files
committed
Add test for new delayed bug code path
1 parent 8e76c76 commit c17a705

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#![feature(repr_simd)]
2+
3+
#[repr(simd)]
4+
struct I64F64(i64, f64);
5+
//~^ ERROR SIMD vector should be homogeneous
6+
7+
static X: I64F64 = I64F64(1, 2.0);
8+
9+
fn main() {}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
error[E0076]: SIMD vector should be homogeneous
2+
--> $DIR/monomorphize-heterogeneous.rs:4:1
3+
|
4+
LL | struct I64F64(i64, f64);
5+
| ^^^^^^^^^^^^^ SIMD elements must have the same type
6+
7+
error: aborting due to previous error
8+
9+
For more information about this error, try `rustc --explain E0076`.

0 commit comments

Comments
 (0)