rust/tests/compile-fail/intrinsics/simd-float-to-int.rs
2022-03-07 09:40:23 -05:00

8 lines
213 B
Rust

// error-pattern: cannot be represented in target type `i32`
#![feature(portable_simd)]
use std::simd::*;
fn main() { unsafe {
let _x : i32x2 = f32x2::from_array([f32::MAX, f32::MIN]).to_int_unchecked();
} }