3 #![cfg_attr(full, feature(const_generics))]
4 #![cfg_attr(full, allow(incomplete_features))]
5 #![cfg_attr(min, feature(min_const_generics))]
7 struct Foo<const N: [u8; { //[min]~ ERROR `[u8; _]` is forbidden
8 struct Foo<const N: usize>;
10 impl<const N: usize> Foo<N> {
17 //~^ ERROR calls in constants are limited to constant functions
18 //~| ERROR evaluation of constant value failed