From bb38ab4340b944cb047ea0977d4198aaa9a36dec Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sat, 18 Apr 2020 10:11:45 +0200 Subject: [PATCH] use u128::MAX symbolic name --- tests/compile-fail/intrinsics/float_to_int_64_too_big4.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/compile-fail/intrinsics/float_to_int_64_too_big4.rs b/tests/compile-fail/intrinsics/float_to_int_64_too_big4.rs index d5b24347b9..e9623dba94 100644 --- a/tests/compile-fail/intrinsics/float_to_int_64_too_big4.rs +++ b/tests/compile-fail/intrinsics/float_to_int_64_too_big4.rs @@ -6,5 +6,5 @@ extern "rust-intrinsic" { } fn main() { - unsafe { float_to_int_unchecked::(340282366920938463463374607431768211455.0f64); } //~ ERROR: cannot be represented in target type `u128` + unsafe { float_to_int_unchecked::(u128::MAX as f64); } //~ ERROR: cannot be represented in target type `u128` }