]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/issue-69312.rs
Rollup merge of #106949 - compiler-errors:is-poly, r=BoxyUwU
[rust.git] / tests / ui / consts / issue-69312.rs
1 // build-pass
2
3 // Verify that the compiler doesn't ICE during const prop while evaluating the index operation.
4
5 #![allow(unconditional_panic)]
6
7 fn main() {
8     let cols = [0u32; 0];
9     cols[0];
10 }