rust/tests/compile-fail/exact_div2.rs
2020-03-16 21:32:57 +01:00

6 lines
186 B
Rust

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