rust/tests/fail/intrinsics/rem-by-zero.rs
2022-06-01 10:53:38 -04:00

10 lines
188 B
Rust

#![feature(core_intrinsics)]
use std::intrinsics::*;
fn main() {
unsafe {
let _n = unchecked_rem(3u32, 0); //~ ERROR calculating the remainder with a divisor of zero
}
}