Debian Codegraph @

gcc/testsuite/rust/compile/repeated_constructor_fields.rs

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 }