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