#![feature(const_generics)] //~^ WARN the feature `const_generics` is incomplete pub fn arr_len() { let _: [u8; N + 1]; //~^ ERROR constant expression depends on a generic parameter } struct Const; pub fn func_call() { let _: Const::<{N + 1}>; //~^ ERROR constant expression depends on a generic parameter } fn main() {}