summary refs log tree commit diff
path: root/tests/ui/const-generics/issue-80471.rs
blob: 20d92092b9fa26bb06f75e543d2da952b7206adf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#![feature(adt_const_params)]

#[derive(PartialEq, Eq)]
enum Nat {
    Z,
    S(Box<Nat>),
}

fn foo<const N: Nat>() {}
//~^ ERROR `Nat` must implement `ConstParamTy` to be used as the type of a const generic parameter

fn main() {}