blob: 6ae9d5cfbb54f42df0ab52452de4141b705bceeb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#![feature(adt_const_params)]
#![allow(incomplete_features)]
#[derive(PartialEq, Eq)]
struct A;
struct B<const X: A>; // ok
struct C;
struct D<const X: C>; //~ ERROR `C` must be annotated with `#[derive(PartialEq, Eq)]`
fn main() {}
|