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

6 lines
194 B
Rust

#![feature(core_intrinsics)]
fn main() {
// signed divison with a remainder
unsafe { std::intrinsics::exact_div(-19i8, 2); } //~ ERROR -19i8 cannot be divided by 2i8 without remainder
}