mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
18 lines
344 B
Rust
18 lines
344 B
Rust
// build-pass
|
|
#![feature(generic_const_exprs)]
|
|
#![allow(incomplete_features)]
|
|
|
|
// This test does not use any "unevaluated" consts, so it should compile just fine.
|
|
|
|
fn bind<const N: usize>(value: [u8; N]) -> [u8; N] {
|
|
todo!()
|
|
}
|
|
|
|
fn sink(_: [u8; 5]) {}
|
|
|
|
fn main() {
|
|
let mut arr = Default::default();
|
|
arr = bind(arr);
|
|
sink(arr);
|
|
}
|