Skip to content

Commit 3d9b68a

Browse files
authored
Rollup merge of #69339 - wesleywiser:test_for_69312, r=Centril
Add test for #69312 This bug was fixed by #67501. Closes #69312
2 parents c261ff1 + ec980a2 commit 3d9b68a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/test/ui/consts/issue-69312.rs

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// build-pass
2+
3+
// Verify that the compiler doesn't ICE during const prop while evaluating the index operation.
4+
5+
#![allow(unconditional_panic)]
6+
7+
fn main() {
8+
let cols = [0u32; 0];
9+
cols[0];
10+
}

0 commit comments

Comments
 (0)