3 #![cfg_attr(full, feature(const_generics))]
4 #![cfg_attr(full, allow(incomplete_features))]
5 #![cfg_attr(min, feature(min_const_generics))]
7 // Currently, const parameters cannot depend on other generic parameters,
8 // as our current implementation can't really support this.
10 // We may want to lift this restriction in the future.
12 pub struct Dependent<const N: usize, const X: [u8; N]>([(); N]);
13 //~^ ERROR: the type of const parameters must not depend on other generic parameters
14 //[min]~^^ ERROR `[u8; _]` is forbidden
16 pub struct SelfDependent<const N: [u8; N]>;
17 //~^ ERROR: the type of const parameters must not depend on other generic parameters
18 //[min]~^^ ERROR `[u8; _]` is forbidden