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