]> git.lizzy.rs Git - rust.git/blob - src/tools/miri/tests/fail/intrinsics/unchecked_mul2.rs
Rollup merge of #105480 - notriddle:notriddle/sidebar-toggle-mobile-center, r=Guillau...
[rust.git] / src / tools / miri / tests / fail / intrinsics / unchecked_mul2.rs
1 #![feature(unchecked_math)]
2 fn main() {
3     // MIN overflow
4     let _val = unsafe { 1_000_000_000i32.unchecked_mul(-4) }; //~ ERROR: overflow executing `unchecked_mul`
5 }