2019-06-16 03:51:08 -05:00
|
|
|
#![feature(core_intrinsics)]
|
|
|
|
fn main() {
|
2020-03-04 06:01:06 -06:00
|
|
|
// divison of MIN by -1
|
2022-06-21 13:38:02 -05:00
|
|
|
unsafe {
|
2022-06-21 13:40:02 -05:00
|
|
|
std::intrinsics::exact_div(i64::MIN, -1); //~ ERROR overflow in signed remainder (dividing MIN by -1)
|
|
|
|
}
|
2019-06-16 03:51:08 -05:00
|
|
|
}
|