1 // Regression test for #67739
3 #![allow(incomplete_features)]
4 #![feature(const_generics)]
9 type Associated: Sized;
11 fn associated_size(&self) -> usize {
12 [0u8; mem::size_of::<Self::Associated>()];
13 //~^ ERROR: array lengths can't depend on generic parameters