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<T, const X: T>([(); X]);
10 //~^ ERROR: the type of const parameters must not depend on other generic parameters
11 //~| ERROR: parameter `T` is never used