rust/tests/compile-fail/div-by-zero-1.rs
2019-02-26 18:37:45 +00:00

12 lines
178 B
Rust

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