aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/arrays1.rs
blob: 2db56676b0142e53849ee8e240691abd91a88cab (plain)
1
2
3
4
fn main() {
    let xs: [i32; 5] = [1, 2, 3, 4, 5];
    let a: bool = xs[0]; // { dg-error "mismatched types, expected .bool. but got .i32." }
}