2 #![cfg_attr(full, feature(generic_const_exprs))]
3 #![cfg_attr(full, allow(incomplete_features))]
5 struct Foo<T, U = [u8; std::mem::size_of::<T>()]>(T, U);
6 //[min]~^ ERROR generic parameters may not be used in const operations
8 struct Bar<T = [u8; N], const N: usize>(T);
9 //~^ ERROR generic parameters with a default cannot use forward declared identifiers
10 //~| ERROR generic parameters with a default