mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-23 12:23:22 +00:00
parent
2c462a2f77
commit
ec980a21b0
10
src/test/ui/consts/issue-69312.rs
Normal file
10
src/test/ui/consts/issue-69312.rs
Normal file
@ -0,0 +1,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];
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user