mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
11 lines
178 B
Rust
11 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
|
|
}
|