Debian Codegraph @

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

raw
1 fn main() {
2 let mut x = TEST_CONST;
3 x = x + 1;
4
5 let mut y = x + TEST_CONST;
6 // { dg-warning "unused name" "" { target *-*-* } .-1 }
7 }
8
9 const TEST_CONST: i32 = 10;