#![feature(const_generics)] #![allow(incomplete_features)] fn foo() {} //~^ ERROR the type of const parameters must not fn main() { const DATA: [u8; 4] = *b"ABCD"; foo::<4, DATA>(); //~^ ERROR constant expression depends on }