1 error[E0770]: the type of const parameters must not depend on other generic parameters
2 --> $DIR/const-param-type-depends-on-type-param-ungated.rs:6:22
4 LL | struct B<T, const N: T>(PhantomData<[T; N]>);
5 | ^ the type must not depend on the parameter `T`
7 error[E0658]: const generics are unstable
8 --> $DIR/const-param-type-depends-on-type-param-ungated.rs:6:19
10 LL | struct B<T, const N: T>(PhantomData<[T; N]>);
13 = note: see issue #74878 <https://github.com/rust-lang/rust/issues/74878> for more information
14 = help: add `#![feature(min_const_generics)]` to the crate attributes to enable
16 error: aborting due to 2 previous errors
18 Some errors have detailed explanations: E0658, E0770.
19 For more information about an error, try `rustc --explain E0658`.