]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/const-param-type-depends-on-type-param-ungated.rs
78bd549ba791a456739aa62a60d2462aa4d8082f
[rust.git] / src / test / ui / const-generics / const-param-type-depends-on-type-param-ungated.rs
1 use std::marker::PhantomData;
2
3 struct B<T, const N: T>(PhantomData<[T; N]>); //~ ERROR const generics are unstable
4 //~^ ERROR the types of const generic parameters must derive `PartialEq` and `Eq`
5
6 fn main() {}