☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
repeated_constructor_fields.rs
☽
☼
gcc/testsuite/rust/compile/repeated_constructor_fields.rs
code
plain
raw
1
struct Foo {
2
x: i32,
3
}
4
5
fn main() {
6
let x = Foo {
7
x: 0,
8
x: 0, // { dg-error "field 'x' specified more than once" }
9
};
10
}