2022-03-06 12:58:41 -06:00
|
|
|
// error-pattern: cannot be represented in target type `i32`
|
|
|
|
#![feature(portable_simd)]
|
|
|
|
use std::simd::*;
|
|
|
|
|
2022-06-19 22:33:59 -05:00
|
|
|
fn main() {
|
|
|
|
unsafe {
|
|
|
|
let _x: i32x2 = f32x2::from_array([f32::MAX, f32::MIN]).to_int_unchecked();
|
|
|
|
}
|
|
|
|
}
|