2019-06-16 03:51:08 -05:00
|
|
|
#![feature(core_intrinsics)]
|
|
|
|
fn main() {
|
|
|
|
// divison with a remainder
|
2020-03-16 15:32:57 -05:00
|
|
|
unsafe { std::intrinsics::exact_div(2u16, 3); } //~ ERROR 2u16 cannot be divided by 3u16 without remainder
|
2019-06-16 03:51:08 -05:00
|
|
|
}
|