Skip to content

Commit bb38ab4

Browse files
committed
use u128::MAX symbolic name
1 parent a82efce commit bb38ab4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/compile-fail/intrinsics/float_to_int_64_too_big4.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ extern "rust-intrinsic" {
66
}
77

88
fn main() {
9-
unsafe { float_to_int_unchecked::<f64, u128>(340282366920938463463374607431768211455.0f64); } //~ ERROR: cannot be represented in target type `u128`
9+
unsafe { float_to_int_unchecked::<f64, u128>(u128::MAX as f64); } //~ ERROR: cannot be represented in target type `u128`
1010
}

0 commit comments

Comments
 (0)