1 #![feature(generic_const_exprs)]
2 #![allow(incomplete_features)]
4 // This test is a minimized reproduction for #79518 where
5 // during error handling for the type mismatch we would try
6 // to evaluate std::mem::size_of::<Self::Assoc> causing an ICE
10 const AssocInstance: Self::Assoc;
14 [(); std::mem::size_of::<Self::Assoc>()]: ,
16 Self::AssocInstance == [(); std::mem::size_of::<Self::Assoc>()];
17 //~^ Error: mismatched types