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 }