summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/const-index-feature-gate.rs
blob: 3537a1790cc6d18b4f072e52f97b61a3c9d152c6 (plain)
1
2
3
4
5
6
7
// run-pass
#![allow(dead_code)]
const ARR: [usize; 1] = [2];
const ARR2: [i32; ARR[0]] = [5, 6];

fn main() {
}