mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
Add test for new delayed bug code path
This commit is contained in:
parent
8e76c76149
commit
c17a705758
9
tests/ui/simd/monomorphize-heterogeneous.rs
Normal file
9
tests/ui/simd/monomorphize-heterogeneous.rs
Normal file
@ -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
tests/ui/simd/monomorphize-heterogeneous.stderr
Normal file
9
tests/ui/simd/monomorphize-heterogeneous.stderr
Normal file
@ -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`.
|
Loading…
Reference in New Issue
Block a user