Debian Codegraph @

gcc/testsuite/rust/compile/torture/arrays1.rs

raw
1 fn main() {
2 let xs: [i32; 5] = [1, 2, 3, 4, 5];
3 let xy = [6, 7, 8];
4
5 let a = xs[0];
6 // { dg-warning "unused name" "" { target *-*-* } .-1 }
7 let b = xy[2];
8 // { dg-warning "unused name" "" { target *-*-* } .-1 }
9 }