summaryrefslogtreecommitdiffstats
path: root/src/test/ui/const-generics/incorrect-number-of-const-args.rs
blob: de2d126afd75a1bc9e057ff68cf465a207870fdf (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 this function takes 2

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