rust/tests/ui/consts/issue-69312.rs

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

11 lines
197 B
Rust
Raw Normal View History

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