Debian Codegraph @

gcc/testsuite/rust/compile/arrays2.rs

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 }