rust/tests/compile-fail/div-by-zero-3.rs

12 lines
178 B
Rust
Raw Normal View History

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