1 error: type parameters with a default must be trailing
2 --> $DIR/params-in-ct-in-ty-param-lazy-norm.rs:7: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: constant values inside of type parameter defaults must not depend on generic parameters
10 --> $DIR/params-in-ct-in-ty-param-lazy-norm.rs:3:44
12 LL | struct Foo<T, U = [u8; std::mem::size_of::<T>()]>(T, U);
13 | ^ the anonymous constant must not depend on the parameter `T`
15 error: constant values inside of type parameter defaults must not depend on generic parameters
16 --> $DIR/params-in-ct-in-ty-param-lazy-norm.rs:7:21
18 LL | struct Bar<T = [u8; N], const N: usize>(T);
19 | ^ the anonymous constant must not depend on the parameter `N`
21 warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
22 --> $DIR/params-in-ct-in-ty-param-lazy-norm.rs:1:12
24 LL | #![feature(const_generics)]
27 = note: `#[warn(incomplete_features)]` on by default
28 = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
30 error: aborting due to 3 previous errors; 1 warning emitted