Debian Codegraph @

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

raw
1 struct Foo {
2 a: i32,
3 // { dg-warning "field is never read" "" { target *-*-* } .-1 }
4 b: i32,
5 }
6
7 fn foo() -> Foo {
8 Foo { a: 42, b: 32 }
9 }
10
11 fn main() {
12 let _f = Foo { a: 10, ..foo() };
13 }