Debian Codegraph @

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

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