]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/const_prop/bad_op_mod_by_zero.rs
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[rust.git] / src / test / 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 }