1 error: generic parameters with a default must be trailing
2 --> $DIR/params-in-ct-in-ty-param-lazy-norm.rs:8: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:5: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
16 = help: use `#![feature(const_generics)]` and `#![feature(const_evaluatable_checked)]` to allow generic const expressions
18 error[E0128]: generic parameters with a default cannot use forward declared identifiers
19 --> $DIR/params-in-ct-in-ty-param-lazy-norm.rs:8:21
21 LL | struct Bar<T = [u8; N], const N: usize>(T);
22 | ^ defaulted generic parameters cannot be forward declared
24 error: aborting due to 3 previous errors
26 For more information about this error, try `rustc --explain E0128`.