2 #![cfg_attr(full, feature(generic_const_exprs))]
3 #![cfg_attr(full, allow(incomplete_features))]
8 type Associated: Sized;
10 fn associated_size(&self) -> usize {
11 [0u8; mem::size_of::<Self::Associated>()];
12 //[min]~^ ERROR constant expression depends on a generic parameter
13 //[full]~^^ ERROR unconstrained generic constant