Debian Codegraph @

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

raw
1 fn main() {
2 let mut array: [i32; 3] = [0; 3];
3
4 let a = array[0];
5 // { dg-warning "unused name" "" { target *-*-* } .-1 }
6 let x = 0;
7 let mut c;
8 c = array[x+1];
9 }