Debian Codegraph @

gcc/testsuite/rust/compile/usize1.rs

raw
1 fn main() {
2 let a = [1, 2, 3];
3 let b: u32 = 1;
4 let c = a[b]; // { dg-error "the type ...integer..CAPACITY.. cannot be indexed by .u32." }
5 }