rust/tests/ui/consts/issue-29914-3.rs
2024-02-16 20:02:50 +00:00

8 lines
125 B
Rust

//@ run-pass
const ARR: [usize; 5] = [5, 4, 3, 2, 1];
const BLA: usize = ARR[ARR[3]];
fn main() {
assert_eq!(3, BLA);
}