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

6 lines
206 B
Rust

#![feature(core_intrinsics)]
fn main() {
// divison with a remainder
unsafe { std::intrinsics::exact_div(2u16, 3); } //~ ERROR Scalar(0x0002) cannot be divided by Scalar(0x0003) without remainder
}