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