rust/tests/compile-fail/exact_div4.rs
2019-06-16 11:10:33 +02:00

6 lines
203 B
Rust

#![feature(core_intrinsics)]
fn main() {
// divison of min_value by -1
unsafe { std::intrinsics::exact_div(i64::min_value(), -1); } //~ ERROR result of dividing MIN by -1 cannot be represented
}