1 #![feature(const_generics)] //~ WARN the feature `const_generics` is incomplete
3 struct Foo<T, U = [u8; std::mem::size_of::<T>()]>(T, U);
4 //~^ ERROR constant values inside of type parameter defaults
6 // FIXME(const_generics:defaults): We still don't know how to we deal with type defaults.
7 struct Bar<T = [u8; N], const N: usize>(T);
8 //~^ ERROR constant values inside of type parameter defaults
9 //~| ERROR type parameters with a default