rust/tests/ui/const-generics/incorrect-number-of-const-args.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
178 B
Rust
Raw Normal View History

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
}