1 2 3 4 5 6 7 8
#![feature(min_const_generics)] fn a<const X: &'static [u32]>() {} //~^ ERROR `&'static [u32]` is forbidden as the type of a const generic parameter fn main() { a::<{&[]}>(); }