1 #![feature(const_generics)]
2 //~^ WARN the feature `const_generics` is incomplete
4 pub fn arr_len<const N: usize>() {
6 //~^ ERROR constant expression depends on a generic parameter
9 struct Const<const N: usize>;
11 pub fn func_call<const N: usize>() {
12 let _: Const::<{N + 1}>;
13 //~^ ERROR constant expression depends on a generic parameter