rust/tests/compile-fail/intrinsics/exact_div4.rs
2020-04-11 11:36:55 +02:00

6 lines
189 B
Rust

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