]> git.lizzy.rs Git - rust.git/blob - src/test/ui/numbers-arithmetic/mod-zero.rs
Merge commit '1411a98352ba6bee8ba3b0131c9243e5db1e6a2e' into sync_cg_clif-2021-12-31
[rust.git] / src / test / ui / numbers-arithmetic / mod-zero.rs
1 // run-fail
2 // error-pattern:attempt to calculate the remainder with a divisor of zero
3 // ignore-emscripten no processes
4
5 #[allow(unconditional_panic)]
6 fn main() {
7     let y = 0;
8     let _z = 1 % y;
9 }