]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/forbid-non-structural_match-types.rs
Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup
[rust.git] / src / test / ui / const-generics / forbid-non-structural_match-types.rs
1 #![feature(adt_const_params)]
2 #![allow(incomplete_features)]
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() {}