Skip to content

Commit

Permalink
Add test for #69312
Browse files Browse the repository at this point in the history
This bug was fixed by #67501.

Closes #69312
  • Loading branch information
wesleywiser committed Feb 21, 2020
1 parent 2c462a2 commit ec980a2
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 ec980a2

Please sign in to comment.