Sign in
◑
Theme
gnu
/
gcc.git
/
bb5c3bfcb28b423544676b30df5a3bc97e91c41f
/
.
/
gcc
/
testsuite
/
rust
/
compile
/
repeated_constructor_fields.rs
blob: c3ef5844626a15707d9f1403b81a81c6306838ef [
file
]
#![
feature
(
no_core
)]
#![
no_core
]
struct
Foo
{
x
:
i32
,
}
fn
main
()
{
let
x
=
Foo
{
x
:
0
,
x
:
0
,
// { dg-error "field 'x' specified more than once" }
};
}