// compile-flags: -Zmir-opt-level=1 trait NeedsDrop:Sized{ const NEEDS:bool=std::mem::needs_drop::(); } impl NeedsDrop for This{} // EMIT_MIR control_flow_simplification.hello.ConstProp.diff // EMIT_MIR control_flow_simplification.hello.PreCodegen.before.mir fn hello(){ if ::NEEDS { panic!() } } pub fn main() { hello::<()>(); hello::>(); }