☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
torture
/
struct_base_init_1.rs
☽
☼
gcc/testsuite/rust/compile/torture/struct_base_init_1.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 foo() -> Foo {
8
Foo { a: 42, b: 32 }
9
}
10
11
fn main() {
12
let _f = Foo { a: 10, ..foo() };
13
}