rust/tests/compile-fail/intrinsics/exact_div4.rs
2022-03-03 12:14:24 -05:00

6 lines
188 B
Rust

#![feature(core_intrinsics)]
fn main() {
// divison of MIN by -1
unsafe { std::intrinsics::exact_div(i64::MIN, -1); } //~ ERROR overflow in signed remainder (dividing MIN by -1)
}