1 #![feature(const_generics)]
2 //~^ WARN the feature `const_generics` is incomplete
4 pub struct MyArray<const COUNT: usize>([u8; COUNT + 1]);
5 //~^ ERROR constant expression depends on a generic parameter
7 impl<const COUNT: usize> MyArray<COUNT> {
8 fn inner(&self) -> &[u8; COUNT + 1] {
9 //~^ ERROR constant expression depends on a generic parameter