diff --git a/tests/compile-fail/fast_math_second.rs b/tests/compile-fail/fast_math_second.rs index 114197d75793..e8d70a4a79e7 100644 --- a/tests/compile-fail/fast_math_second.rs +++ b/tests/compile-fail/fast_math_second.rs @@ -2,6 +2,6 @@ fn main() { unsafe { - let _x: f32 = core::intrinsics::fmul_fast(3.4f32, f32::NAN); //~ ERROR `fmul_fast` intrinsic called with non-finite value as second parameter + let _x: f32 = core::intrinsics::fmul_fast(3.4f32, f32::INFINITY); //~ ERROR `fmul_fast` intrinsic called with non-finite value as second parameter } }