mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
13 lines
260 B
Rust
13 lines
260 B
Rust
// 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);
|
|
}
|