rust/tests/ui/const-generics/infer_arr_len_from_pat.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
141 B
Rust
Raw Normal View History

2020-03-30 16:13:14 +00:00
// check-pass
//
// see issue #70529
fn as_chunks<const N: usize>() -> [u8; N] {
loop {}
}
fn main() {
let [_, _] = as_chunks();
}