2019-06-16 10:51:08 +02:00
|
|
|
#![feature(core_intrinsics)]
|
|
|
|
fn main() {
|
2020-03-04 13:01:06 +01:00
|
|
|
// divison of MIN by -1
|
|
|
|
unsafe { std::intrinsics::exact_div(i64::MIN, -1); } //~ ERROR result of dividing MIN by -1 cannot be represented
|
2019-06-16 10:51:08 +02:00
|
|
|
}
|