3 #![cfg_attr(full, feature(adt_const_params))]
4 #![cfg_attr(full, allow(incomplete_features))]
6 struct Foo<const N: [u8; { //[min]~ ERROR `[u8; _]` is forbidden
7 struct Foo<const N: usize>;
9 impl<const N: usize> Foo<N> {
16 //~^ ERROR calls in constants are limited to constant functions