//@ check-pass #![feature(generic_const_exprs)] #![allow(incomplete_features)] trait Trait {} pub struct EvaluatableU128; struct HasCastInTraitImpl; impl Trait for HasCastInTraitImpl {} pub fn use_trait_impl() where EvaluatableU128<{N as u128}>:, { fn assert_impl() {} assert_impl::>(); assert_impl::>(); assert_impl::>(); assert_impl::>(); } pub fn use_trait_impl_2() where EvaluatableU128<{N as _}>:, { fn assert_impl() {} assert_impl::>(); assert_impl::>(); assert_impl::>(); assert_impl::>(); } fn main() {}