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