Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
suggestions
/
type-mismatch-struct-field-shorthand.rs
blob: f398d18a0e14f03bfc9a4ebb390cd615e9a9328d [
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
}