Skip to content

Commit

Permalink
Rollup merge of rust-lang#69339 - wesleywiser:test_for_69312, r=Centril
Browse files Browse the repository at this point in the history
Add test for rust-lang#69312

This bug was fixed by rust-lang#67501.

Closes rust-lang#69312
  • Loading branch information
Dylan-DPC committed Feb 22, 2020
2 parents c261ff1 + ec980a2 commit 3d9b68a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/test/ui/consts/issue-69312.rs
Original file line number Diff line number Diff line change
@@ -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];
}

0 comments on commit 3d9b68a

Please sign in to comment.