]> git.lizzy.rs Git - rust.git/blob - tests/ui/numbers-arithmetic/divide-by-zero.rs
Rollup merge of #106644 - alexcrichton:update-wasi-toolchain, r=cuviper
[rust.git] / tests / ui / numbers-arithmetic / divide-by-zero.rs
1 // run-fail
2 // error-pattern:attempt to divide by zero
3 // ignore-emscripten no processes
4
5 #[allow(unconditional_panic)]
6 fn main() {
7     let y = 0;
8     let _z = 1 / y;
9 }