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

6 lines
210 B
Rust

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