1 error[E0107]: this function takes 2 const arguments but only 1 const argument was supplied
2 --> $DIR/incorrect-number-of-const-args.rs:11:5
5 | ^^^ - supplied 1 const argument
7 | expected 2 const arguments
9 note: function defined here, with 2 const parameters: `X`, `Y`
10 --> $DIR/incorrect-number-of-const-args.rs:6:4
12 LL | fn foo<const X: usize, const Y: usize>() -> usize {
14 help: add missing const argument
19 error[E0107]: this function takes 2 const arguments but 3 const arguments were supplied
20 --> $DIR/incorrect-number-of-const-args.rs:14:5
22 LL | foo::<0, 0, 0>();
23 | ^^^ --- help: remove this const argument
25 | expected 2 const arguments
27 note: function defined here, with 2 const parameters: `X`, `Y`
28 --> $DIR/incorrect-number-of-const-args.rs:6:4
30 LL | fn foo<const X: usize, const Y: usize>() -> usize {
33 error: aborting due to 2 previous errors
35 For more information about this error, try `rustc --explain E0107`.