2 #![feature(generic_const_exprs)]
3 #![allow(incomplete_features)]
5 struct Num<const N: usize>;
11 impl<const N: usize> NumT for Num<N> {
12 const VALUE: usize = N;
15 struct Foo<'a, N: NumT>(&'a [u32; N::VALUE]) where [(); N::VALUE]:;
20 fn bar<'a>(foo: &Foo<'a, Self::Size>) where [(); Self::Size::VALUE]: {
28 fn baz(foo: &Foo<'a, Self::Size>) where [(); Self::Size::VALUE]: {