2019-06-16 03:51:08 -05:00
|
|
|
#![feature(core_intrinsics)]
|
|
|
|
fn main() {
|
|
|
|
// signed divison with a remainder
|
2019-11-03 03:15:55 -06:00
|
|
|
unsafe { std::intrinsics::exact_div(-19i8, 2); } //~ ERROR 237 cannot be divided by 2 without remainder
|
2019-06-16 03:51:08 -05:00
|
|
|
}
|