1error[E0770]: the type of const parameters must not depend on other generic parameters
2  --> $DIR/const-param-type-depends-on-const-param.rs:11:52
3   |
4LL | pub struct Dependent<const N: usize, const X: [u8; N]>([(); N]);
5   |                                                    ^ the type must not depend on the parameter `N`
6
7error[E0770]: the type of const parameters must not depend on other generic parameters
8  --> $DIR/const-param-type-depends-on-const-param.rs:15:40
9   |
10LL | pub struct SelfDependent<const N: [u8; N]>;
11   |                                        ^ the type must not depend on the parameter `N`
12
13error: aborting due to 2 previous errors
14
15For more information about this error, try `rustc --explain E0770`.
16