☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
torture
/
arrays_index3.rs
☽
☼
gcc/testsuite/rust/compile/torture/arrays_index3.rs
code
plain
raw
1
fn foo() -> usize {
2
1
3
}
4
5
fn bar() -> [i32; 1] {
6
[0]
7
}
8
9
10
11
fn main() -> () {
12
let a = [10];
13
let _b = a[foo()];
14
let _c = bar()[foo()];
15
}