☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
arrays1.rs
☽
☼
gcc/testsuite/rust/compile/arrays1.rs
code
plain
raw
1
fn main() {
2
let xs: [i32; 5] = [1, 2, 3, 4, 5];
3
let a: bool = xs[0]; // { dg-error "mismatched types, expected .bool. but got .i32." }
4
}