1 // compile-flags: -Zsave-analysis
2 // Regression test for #69414 ^
4 use std::marker::PhantomData;
6 struct B<T, const N: T>(PhantomData<[T; N]>); //~ ERROR const generics are unstable
7 //~^ ERROR the type of const parameters must not depend on other generic parameters