rust/tests/fail/intrinsics/div-by-zero.rs
2022-07-11 11:48:56 +00:00

10 lines
156 B
Rust

#![feature(core_intrinsics)]
use std::intrinsics::*;
fn main() {
unsafe {
let _n = unchecked_div(1i64, 0); //~ERROR: dividing by zero
}
}