8 lines
154 B
Rust
8 lines
154 B
Rust
// unit-test: ConstProp
|
|
// EMIT_MIR bad_op_div_by_zero.main.ConstProp.diff
|
|
#[allow(unconditional_panic)]
|
|
fn main() {
|
|
let y = 0;
|
|
let _z = 1 / y;
|
|
}
|