We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c261ff1 + ec980a2 commit 3d9b68aCopy full SHA for 3d9b68a
src/test/ui/consts/issue-69312.rs
@@ -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