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