Files
rust/tests/ui/const-generics/min_const_generics/inferred_const.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
148 B
Rust
Raw Normal View History

2021-04-24 21:41:57 +00:00
//@ run-pass
fn foo<const N: usize, const K: usize>(_data: [u32; N]) -> [u32; K] {
[0; K]
}
fn main() {
2021-04-24 21:41:57 +00:00
let _a = foo::<_, 2>([0, 1, 2]);
}