// check-pass #![feature(generic_const_exprs)] #![allow(incomplete_features)] trait Trait { const ASSOC: usize; } impl Trait for T { const ASSOC: usize = std::mem::size_of::(); } struct Foo([u8; T::ASSOC]) where [(); T::ASSOC]:; fn bar() where [(); T::ASSOC]:, { let _: Foo = Foo::<_>(make()); } fn make() -> ! { todo!() } fn main() {}