Open
Description
Under type/cast.md
, the example below:
unsafe { // -100.0 as u8 is 156 println!("-100.0 as u8 is : {}", (-100.0_f32).to_int_unchecked::<u8>()); }
returns 0 as undefined behavior rather than 156 as expected result.
Please update the documentation accordingly so that it doesn't confuse the reader who compiles this code on their local machine.