// build-fail // compile-flags: -Zmir-opt-level=3 #![feature(inline_const)] fn foo() { if false { const { panic!() } //~ ERROR E0080 } } fn main() { foo::(); }