3 #![cfg_attr(full, feature(const_generics))]
4 #![cfg_attr(full, allow(incomplete_features))]
5 #![cfg_attr(min, feature(min_const_generics))]
7 pub struct MyArray<const COUNT: usize>([u8; COUNT + 1]);
8 //[full]~^ ERROR constant expression depends on a generic parameter
9 //[min]~^^ ERROR generic parameters may not be used
11 impl<const COUNT: usize> MyArray<COUNT> {
12 fn inner(&self) -> &[u8; COUNT + 1] {
13 //[full]~^ ERROR constant expression depends on a generic parameter
14 //[min]~^^ ERROR generic parameters may not be used