about summary refs log tree commit diff
path: root/tests/ui/consts/issue-69312.rs
blob: 1c0dc1f87ea1db9f4ff6a320dcd71a8330a4daa5 (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];
}