blob: 4fec2a9f32f81cb7ab47924937241ccd6a932778 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#![feature(adt_const_params)]
#![allow(incomplete_features)]
use std::marker::ConstParamTy;
#[derive(PartialEq, Eq, ConstParamTy)]
struct A;
struct B<const X: A>; // ok
struct C;
struct D<const X: C>; //~ ERROR `C` must implement `ConstParamTy` to be used as the type of a const generic parameter
fn main() {}
|