1 #![feature(const_generics, const_evaluatable_checked)]
2 #![allow(incomplete_features)]
4 // We do not yet want to support let-bindings in abstract consts,
5 // so this test should keep failing for now.
6 fn test<const N: usize>() -> [u8; { let x = N; N + 1 }] where [u8; { let x = N; N + 1 }]: Default {
7 //~^ ERROR overly complex generic constant
8 //~| ERROR overly complex generic constant
14 assert_eq!(x, [0; 32]);