3 // FIXME(wesleywiser): Ideally, we could const-prop away all of this and just be left with
4 // `let x = 42` but that doesn't work because const-prop doesn't support `Operand::Indirect`
5 // and `InterpCx::eval_place()` always forces an allocation which creates the `Indirect`.
6 // Fixing either of those will allow us to const-prop this away.
8 // EMIT_MIR_FOR_EACH_BIT_WIDTH
9 // EMIT_MIR discriminant.main.ConstProp.diff
11 let x = (if let Some(true) = Some(true) { 42 } else { 10 }) + 0;