1 #![feature(const_generics)]
2 //~^ WARN the feature `const_generics` is incomplete
4 // Currently, const parameters cannot depend on other generic parameters,
5 // as our current implementation can't really support this.
7 // We may want to lift this restriction in the future.
9 pub struct Dependent<const N: usize, const X: [u8; N]>([(); N]);
10 //~^ ERROR: the type of const parameters must not depend on other generic parameters
12 pub struct SelfDependent<const N: [u8; N]>;
13 //~^ ERROR: the type of const parameters must not depend on other generic parameters