2 #![feature(generic_const_exprs)]
3 #![allow(incomplete_features)]
5 fn make_array<const M: usize>() -> [(); M + 1] {
9 fn foo<const N: usize>() -> [(); (N * 2) + 1] {
10 make_array::<{ N * 2 }>()
14 assert_eq!(foo::<10>(), [(); 10 * 2 + 1])
17 // Tests that N * 2 is considered const_evalutable by appearing as part of the (N * 2) + 1 const