rust/src/test/ui/consts/promoted_div_by_zero.rs
2020-05-08 00:39:02 +09:00

10 lines
176 B
Rust

#![allow(unconditional_panic, const_err)]
// run-fail
// error-pattern: attempt to divide by zero
// ignore-emscripten no processes
fn main() {
let x = &(1 / (1 - 1));
}