Debian Codegraph @

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

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