Debian Codegraph @

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

raw
1 struct Foo {
2 one: i32,
3 // { dg-warning "field is never read" "" { target *-*-* } .-1 }
4 two: i32
5 }
6 fn main() {
7 let _a = Foo {one: 1, two: 2};
8 let _b = _a.two;
9 }