Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
const-generics
/
issue-80471.rs
blob: 20d92092b9fa26bb06f75e543d2da952b7206adf [
file
] [
log
] [
blame
] [
edit
]
#![
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
()
{}