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 error: generic parameters may not be used in const operations
8 --> $DIR/params-in-ct-in-ty-param-lazy-norm.rs:5:44
10 LL | struct Foo<T, U = [u8; std::mem::size_of::<T>()]>(T, U);
11 | ^ cannot perform const operation using `T`
13 = note: type parameters may not be used in const expressions
14 = help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
16 error[E0128]: generic parameters with a default cannot use forward declared identifiers
17 --> $DIR/params-in-ct-in-ty-param-lazy-norm.rs:8:21
19 LL | struct Bar<T = [u8; N], const N: usize>(T);
20 | ^ defaulted generic parameters cannot be forward declared
22 error: aborting due to 3 previous errors
24 For more information about this error, try `rustc --explain E0128`.