summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/issue-29914-2.rs
blob: 626de269d95c7c5424ef443b1635a37d3360d652 (plain)
1
2
3
4
5
6
// run-pass
const ARR: [usize; 5] = [5, 4, 3, 2, 1];

fn main() {
    assert_eq!(3, ARR[ARR[3]]);
}