about summary refs log tree commit diff
path: root/src/test/ui/const-generics/min_const_generics/static-reference-array-const-param.rs
blob: 0ef17109bed40333528f57bc90f1cbb6181a53b5 (plain)
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::<{&[]}>();
}