aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/arrays2.rs
blob: 668bcf0951b16005c6329fcb76ac8dbc00f36e73 (plain)
1
2
3
4
5
// { dg-additional-options "-w" }
fn main() {
    let array: [i32; 5] = [1, 2, 3];
    // { dg-error "mismatched types, expected an array with a fixed size of 5 elements, found one with 3 elements" "" { target *-*-* } .-1 }
}