rust/tests/ui/const-generics/occurs-check/unify-fixpoint.rs

13 lines
260 B
Rust
Raw Normal View History

// check-pass
#![feature(generic_const_exprs)] //~ WARN the feature `generic_const_exprs` is incomplete
2020-09-09 02:43:53 -05:00
fn bind<const N: usize>(value: [u8; N + 2]) -> [u8; N * 2] {
todo!()
}
fn main() {
let mut arr = Default::default();
arr = bind::<2>(arr);
}