rust/tests/compile-fail/div-by-zero-3.rs
2019-06-16 11:10:33 +02:00

12 lines
178 B
Rust

#![feature(core_intrinsics)]
use std::intrinsics::*;
//error-pattern: Division by 0 in unchecked_rem
fn main() {
unsafe {
let _n = unchecked_rem(3u32, 0);
}
}