mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-03 10:47:16 +00:00
9 lines
148 B
Rust
9 lines
148 B
Rust
//@ run-pass
|
|
|
|
fn foo<const N: usize, const K: usize>(_data: [u32; N]) -> [u32; K] {
|
|
[0; K]
|
|
}
|
|
fn main() {
|
|
let _a = foo::<_, 2>([0, 1, 2]);
|
|
}
|