#![feature(adt_const_params)] #[derive(PartialEq, Eq)] enum Nat { Z, S(Box), } fn foo() {} //~^ ERROR `Nat` must implement `ConstParamTy` to be used as the type of a const generic parameter fn main() {}