]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/const-param-type-depends-on-type-param-ungated.rs
Make the `structural_match` error diagnostic for const generics clearer
[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 `T` must be annotated with `#[derive(PartialEq, Eq)]`
5
6 fn main() {}