Skip to content

Commit

Permalink
Add test for new delayed bug code path
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewjasper committed Apr 8, 2023
1 parent 8e76c76 commit c17a705
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/ui/simd/monomorphize-heterogeneous.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#![feature(repr_simd)]

#[repr(simd)]
struct I64F64(i64, f64);
//~^ ERROR SIMD vector should be homogeneous

static X: I64F64 = I64F64(1, 2.0);

fn main() {}
9 changes: 9 additions & 0 deletions tests/ui/simd/monomorphize-heterogeneous.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
error[E0076]: SIMD vector should be homogeneous
--> $DIR/monomorphize-heterogeneous.rs:4:1
|
LL | struct I64F64(i64, f64);
| ^^^^^^^^^^^^^ SIMD elements must have the same type

error: aborting due to previous error

For more information about this error, try `rustc --explain E0076`.

0 comments on commit c17a705

Please sign in to comment.