#![feature(generic_const_exprs)] #![allow(incomplete_features)] type Arr = [u8; N - 1]; //~^ ERROR evaluation of `Arr::<0>::{constant#0}` failed fn test() -> Arr where [u8; N - 1]: Sized, //~^ ERROR evaluation of `test::<0>::{constant#0}` failed { todo!() } fn main() { test::<0>(); }