]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/forbid-non-structural_match-types.rs
pin docs: add some forward references
[rust.git] / src / test / ui / const-generics / forbid-non-structural_match-types.rs
1 #![feature(const_generics)]
2 //~^ WARN the feature `const_generics` is incomplete
3
4 #[derive(PartialEq, Eq)]
5 struct A;
6
7 struct B<const X: A>; // ok
8
9 struct C;
10
11 struct D<const X: C>; //~ ERROR `C` must be annotated with `#[derive(PartialEq, Eq)]`
12
13 fn main() {}