1 error: type parameters with a default must be trailing
2 --> $DIR/params-in-ct-in-ty-param-lazy-norm.rs:12:12
4 LL | struct Bar<T = [u8; N], const N: usize>(T);
7 = note: using type defaults and const parameters in the same parameter list is currently not permitted
9 error: generic parameters may not be used in const operations
10 --> $DIR/params-in-ct-in-ty-param-lazy-norm.rs:7:44
12 LL | struct Foo<T, U = [u8; std::mem::size_of::<T>()]>(T, U);
13 | ^ cannot perform const operation using `T`
15 = note: type parameters may not be used in const expressions
17 error: constant values inside of type parameter defaults must not depend on generic parameters
18 --> $DIR/params-in-ct-in-ty-param-lazy-norm.rs:12:21
20 LL | struct Bar<T = [u8; N], const N: usize>(T);
21 | ^ the anonymous constant must not depend on the parameter `N`
23 error: aborting due to 3 previous errors