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

10 lines
155 B
Rust

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