]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/infer_arr_len_from_pat.rs
Rollup merge of #75485 - RalfJung:pin, r=nagisa
[rust.git] / src / test / ui / const-generics / infer_arr_len_from_pat.rs
1 // check-pass
2 //
3 // see issue #70529
4 // revisions: full min
5
6 #![cfg_attr(full, feature(const_generics))]
7 #![cfg_attr(full, allow(incomplete_features))]
8 #![cfg_attr(min, feature(min_const_generics))]
9
10 fn as_chunks<const N: usize>() -> [u8; N] {
11     loop {}
12 }
13
14 fn main() {
15     let [_, _] = as_chunks();
16 }