rust/tests/ui/consts/const-index-feature-gate.rs
2024-02-16 20:02:50 +00:00

8 lines
114 B
Rust

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