☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
torture
/
struct_init_6.rs
☽
☼
gcc/testsuite/rust/compile/torture/struct_init_6.rs
code
plain
raw
1
struct Foo {
2
a: i32,
3
// { dg-warning "field is never read" "" { target *-*-* } .-1 }
4
b: i32,
5
}
6
7
fn main() {
8
let a = Foo { a: 1, b: 2 };
9
let b = Foo { a: 1, ..a };
10
// { dg-warning "unused name" "" { target *-*-* } .-1 }
11
}