rust/tests/ui/consts/const-index-feature-gate.rs

8 lines
114 B
Rust

//@ run-pass
#![allow(dead_code)]
const ARR: [usize; 1] = [2];
const ARR2: [i32; ARR[0]] = [5, 6];
fn main() {
}