1 #![feature(generic_const_exprs)]
2 #![allow(incomplete_features)]
4 const fn both(_: usize, b: usize) -> usize {
8 fn foo<const N: usize, const M: usize>() -> [(); N + 2]
10 [(); both(N + 1, M + 1)]:,
13 //~^ ERROR: unconstrained generic constant
16 fn bar<const N: usize>() -> [(); N]