summary refs log tree commit diff
path: root/src/test/ui/const-generics/issues/issue-62878.rs
blob: ccc05fdf100e7872e8b195c594a77707425020c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
#![feature(const_generics)] //~ WARN the feature `const_generics` is incomplete

fn foo<const N: usize, const A: [u8; N]>() {}
//~^ ERROR the type of const parameters must not

fn main() {
    foo::<_, {[1]}>();
    //~^ ERROR wrong number of const arguments
    //~| ERROR wrong number of type arguments
    //~| ERROR mismatched types
}