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