Skip to content

Commit ec980a2

Browse files
committed
Add test for #69312
This bug was fixed by #67501. Closes #69312
1 parent 2c462a2 commit ec980a2

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)