2 #![cfg_attr(full, feature(const_generics))]
3 #![cfg_attr(full, feature(const_evaluatable_checked))]
4 #![allow(incomplete_features)]
6 type Arr<const N: usize> = [u8; N - 1];
7 //[min]~^ ERROR generic parameters may not be used in const operations
8 //[full]~^^ ERROR evaluation of `Arr::<0_usize>::{constant#0}` failed
10 fn test<const N: usize>() -> Arr<N> where [u8; N - 1]: Sized {
11 //[min]~^ ERROR generic parameters may not be used in const operations
12 //[full]~^^ ERROR evaluation of `test::<0_usize>::{constant#0}` failed