2 #![cfg_attr(full, feature(const_generics))]
3 #![cfg_attr(full, allow(incomplete_features))]
4 #![cfg_attr(min, feature(min_const_generics))]
9 type Associated: Sized;
11 fn associated_size(&self) -> usize {
12 [0u8; mem::size_of::<Self::Associated>()];
13 //[full]~^ ERROR constant expression depends on a generic parameter
14 //[min]~^^ ERROR generic parameters must not be used inside of non-trivial constant values