rust/src/test/ui/consts/issue-69312.rs
Wesley Wiser ec980a21b0 Add test for #69312
This bug was fixed by #67501.

Closes #69312
2020-02-20 21:25:19 -05:00

11 lines
197 B
Rust

// 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];
}