☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
torture
/
struct_init_5.rs
☽
☼
gcc/testsuite/rust/compile/torture/struct_init_5.rs
code
plain
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
}