]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/const-generics/issues/issue-61935.rs
2 #![cfg_attr(full, feature(const_generics))]
3 #![cfg_attr(full, allow(incomplete_features))]
4 #![cfg_attr(min, feature(min_const_generics))]
8 impl<const N
: usize> Foo
for [(); N
]
11 //[full]~^ERROR constant expression depends on a generic parameter
12 //[min]~^^ERROR generic parameters must not be used inside of non trivial constant values
15 trait FooImpl
<const IS_ZERO
: bool
>{}
17 impl FooImpl
<true> for [(); 0] {}
19 impl<const N
:usize> FooImpl
<false> for [();N
] {}
21 fn foo(_
: impl Foo
) {}