mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 22:12:15 +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);
|
|
}
|