mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-02 11:37:50 +00:00
12 lines
178 B
Rust
12 lines
178 B
Rust
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
|
|
}
|