2021-05-06 15:33:44 +00:00
|
|
|
#![feature(generic_arg_infer)]
|
2021-04-24 21:41:57 +00:00
|
|
|
// run-pass
|
|
|
|
|
|
|
|
fn foo<const N: usize, const K: usize>(_data: [u32; N]) -> [u32; K] {
|
2020-12-05 14:40:56 +00:00
|
|
|
[0; K]
|
|
|
|
}
|
|
|
|
fn main() {
|
2021-04-24 21:41:57 +00:00
|
|
|
let _a = foo::<_, 2>([0, 1, 2]);
|
2020-12-05 14:40:56 +00:00
|
|
|
}
|