Closed
Description
In code:
println!("{:#X}", i32::MIN);
It will tell me that i32::MIN
is 0X80000000
, but if I try to assign an i32
with 0X80000000
, I would get an error says literal out of range
.
I suggest to add methods to support assignment of integer types with exact bits, like I can assign i32
with the exact 32 bits in 0X80000000
.