]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/const_prop/bad_op_mod_by_zero.rs
Rollup merge of #107770 - notriddle:notriddle/br2nl, r=GuillaumeGomez
[rust.git] / tests / mir-opt / const_prop / bad_op_mod_by_zero.rs
1 // EMIT_MIR bad_op_mod_by_zero.main.ConstProp.diff
2 #[allow(unconditional_panic)]
3 fn main() {
4     let y = 0;
5     let _z = 1 % y;
6 }