Sign in
◑
Theme
gnu
/
gcc.git
/
bb5c3bfcb28b423544676b30df5a3bc97e91c41f
/
.
/
gcc
/
testsuite
/
rust
/
compile
/
struct_init1.rs
blob: 54a075ff9b300f31afb65aad32d85ba491c9044e [
file
]
#![
feature
(
no_core
)]
#![
no_core
]
struct
Foo
{
a
:
f32
,
b
:
f32
,
}
fn
main
()
{
let
a
=
Foo
{
0
:
10.0
,
1
:
20.0
};
// { dg-error "unknown field .0. .E0560." "" { target *-*-* } .-1 }
// { dg-error "unknown field .1. .E0560." "" { target *-*-* } .-2 }
}