summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/issue-69312.rs
blob: 413c67520798fda98950ad1c5e389545861aee56 (plain)
1
2
3
4
5
6
7
8
9
10
// build-pass

// Verify that the compiler doesn't ICE during const prop while evaluating the index operation.

#![allow(unconditional_panic)]

fn main() {
    let cols = [0u32; 0];
    cols[0];
}