2 #![feature(min_const_generics)]
3 #![allow(incomplete_features)]
8 //~^ ERROR cannot find type
9 //~| unresolved item provided when a constant
11 struct B<const N: u8>;
12 impl<N> Foo for B<N> {}
13 //~^ ERROR type provided when a constant
15 struct C<const C: u8, const N: u8>;
16 impl<const N: u8> Foo for C<N, T> {}
17 //~^ ERROR cannot find type
18 //~| unresolved item provided when a constant