Debian Codegraph @

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

raw
1 struct Foo {
2 a: i32,
3 b: i32,
4 }
5
6 fn main() {
7 let a = Foo { a: 1, b: 2 };
8 let b = Foo { ..a };
9 // { dg-warning "unused name" "" { target *-*-* } .-1 }
10 }