rust/tests/compile-fail/intrinsics/div-by-zero-1.rs
2020-04-11 11:36:55 +02: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
}
}