]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/incorrect-number-of-const-args.rs
Auto merge of #74410 - mati865:mingw-no-self-contained-when-cross-compiling, r=petroc...
[rust.git] / src / test / ui / const-generics / incorrect-number-of-const-args.rs
1 #![feature(const_generics)]
2 //~^ WARN the feature `const_generics` is incomplete
3
4 fn foo<const X: usize, const Y: usize>() -> usize {
5     0
6 }
7
8 fn main() {
9     foo::<0>(); //~ ERROR wrong number of const arguments: expected 2, found 1
10     foo::<0, 0, 0>(); //~ ERROR wrong number of const arguments: expected 2, found 3
11 }