blob: e6f8e4ad3b3a258841c56de9a8e2e0a54a3cf833 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// check-pass
#![feature(generic_const_exprs)] //~ WARN the feature `generic_const_exprs` is incomplete
fn bind<const N: usize>(value: [u8; N + 2]) -> [u8; N * 2] {
todo!()
}
fn main() {
let mut arr = Default::default();
arr = bind::<2>(arr);
}
|