Sign in
fuchsia
/
third_party
/
rust
/
a10a02bf5fd00e4b34f1856af17d058dd5ec06f0
/
.
/
src
/
test
/
ui
/
suggestions
/
type-mismatch-struct-field-shorthand.rs
blob: 9d3a17a72b21e21ffdf1bca23c9f6950cfcbbf2a [
file
] [
log
] [
blame
]
// run-rustfix
#![
allow
(
dead_code
)]
struct
RGB
{
r
:
f64
,
g
:
f64
,
b
:
f64
}
fn
main
()
{
let
(
r
,
g
,
b
):
(
f32
,
f32
,
f32
)
=
(
0.
,
0.
,
0.
);
let
_
=
RGB
{
r
,
g
,
b
};
//~^ ERROR mismatched types
//~| ERROR mismatched types
//~| ERROR mismatched types
}