//@ known-bug: #123893 //@ compile-flags: -Zpolymorphize=on -Zinline-mir=yes -Zinline-mir-threshold=20 pub fn main() { generic_impl::(); } fn generic_impl() { trait MagicTrait { const IS_BIG: bool; } impl MagicTrait for T { const IS_BIG: bool = true; } if T::IS_BIG { big_impl::(); } } #[inline(never)] fn big_impl() {}