mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
8 lines
125 B
Rust
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);
|
|
}
|