mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 15:32:06 +00:00
8 lines
124 B
Rust
8 lines
124 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);
|
|
}
|