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

fn main() {
    assert_eq!(3, BLA);
}