]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/const_prop/bad_op_div_by_zero.rs
Add #[const_trait] where needed in tests.
[rust.git] / src / test / 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 }