Sign in
fuchsia
/
third_party
/
rust
/
4ecd94e1215882efde5f003c0042bd72a5f8acb2
/
.
/
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
}