//@ known-bug: #121585 #![feature(generic_const_exprs)] trait Trait {} struct HasCastInTraitImpl; impl Trait for HasCastInTraitImpl {} pub fn use_trait_impl() { fn assert_impl() {} assert_impl::>(); }