6 lines
188 B
Rust
Raw Normal View History

2019-06-16 10:51:08 +02:00
#![feature(core_intrinsics)]
fn main() {
// divison of MIN by -1
2022-03-01 20:37:46 -05:00
unsafe { std::intrinsics::exact_div(i64::MIN, -1); } //~ ERROR overflow in signed remainder (dividing MIN by -1)
2019-06-16 10:51:08 +02:00
}