summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/incorrect-number-of-const-args.rs
blob: 8660cb2fb541d859188d1f0a080acbd925cad919 (plain)
1
2
3
4
5
6
7
8
9
10
11
fn foo<const X: usize, const Y: usize>() -> usize {
    0
}

fn main() {
    foo::<0>();
    //~^ ERROR function takes 2

    foo::<0, 0, 0>();
    //~^ ERROR function takes 2
}