Sign in
fuchsia
/
third_party
/
rust
/
08351004125c4d49aa757f2c3ec2340f7469ea91
/
.
/
src
/
test
/
ui
/
suggestions
/
type-mismatch-struct-field-shorthand-2.rs
blob: 2ce12220723df745d7986ea148ccc39722f5502e [
file
] [
log
] [
blame
]
struct
RGB
{
r
:
f64
,
g
:
f64
,
b
:
f64
}
fn
main
()
{
let
(
r
,
g
,
c
):
(
f32
,
f32
,
f32
)
=
(
0.
,
0.
,
0.
);
let
_
=
RGB
{
r
,
g
,
c
};
//~^ ERROR mismatched types
//~| ERROR mismatched types
//~| ERROR struct `RGB` has no field named `c`
}