2022-07-24 14:28:45 -04:00
|
|
|
#![feature(unchecked_math)]
|
2019-06-16 11:10:14 +02:00
|
|
|
fn main() {
|
|
|
|
// MIN overflow
|
2022-07-24 14:28:45 -04:00
|
|
|
let _val = unsafe { 1_000_000_000i32.unchecked_mul(-4) }; //~ ERROR: overflow executing `unchecked_mul`
|
2019-06-16 11:10:14 +02:00
|
|
|
}
|