☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
arrays2.rs
☽
☼
gcc/testsuite/rust/compile/arrays2.rs
code
plain
raw
1
// { dg-additional-options "-w" }
2
fn main() {
3
let array: [i32; 5] = [1, 2, 3];
4
// { dg-error "mismatched types, expected an array with a fixed size of 5 elements, found one with 3 elements" "" { target *-*-* } .-1 }
5
}