1 #![feature(generic_const_exprs)]
2 #![allow(incomplete_features)]
4 // This tests that during error handling for the "trait not implemented" error
5 // we dont try to evaluate std::mem::size_of::<Self::Assoc> causing an ICE
13 [Adt; std::mem::size_of::<Self::Assoc>()]: ,
15 <[Adt; std::mem::size_of::<Self::Assoc>()] as Foo>::bar()
16 //~^ Error: the trait bound