mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
11 lines
197 B
Rust
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];
|
||
|
}
|