mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 14:10:03 +03:00
use u128::MAX symbolic name
This commit is contained in:
@@ -6,5 +6,5 @@
|
||||
}
|
||||
|
||||
fn main() {
|
||||
unsafe { float_to_int_unchecked::<f64, u128>(340282366920938463463374607431768211455.0f64); } //~ ERROR: cannot be represented in target type `u128`
|
||||
unsafe { float_to_int_unchecked::<f64, u128>(u128::MAX as f64); } //~ ERROR: cannot be represented in target type `u128`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user