2019-06-16 10:51:08 +02:00
|
|
|
#![feature(core_intrinsics)]
|
|
|
|
fn main() {
|
|
|
|
// divison with a remainder
|
2022-06-25 23:30:29 -04:00
|
|
|
unsafe { std::intrinsics::exact_div(2u16, 3) }; //~ ERROR 2_u16 cannot be divided by 3_u16 without remainder
|
2019-06-16 10:51:08 +02:00
|
|
|
}
|