1 error[E0308]: mismatched types
2 --> $DIR/type-mismatch-struct-field-shorthand.rs:8:19
4 LL | let _ = RGB { r, g, b };
5 | ^ expected f64, found f32
6 help: you can cast an `f32` to `f64` in a lossless way
8 LL | let _ = RGB { r: r.into(), g, b };
11 error[E0308]: mismatched types
12 --> $DIR/type-mismatch-struct-field-shorthand.rs:8:22
14 LL | let _ = RGB { r, g, b };
15 | ^ expected f64, found f32
16 help: you can cast an `f32` to `f64` in a lossless way
18 LL | let _ = RGB { r, g: g.into(), b };
21 error[E0308]: mismatched types
22 --> $DIR/type-mismatch-struct-field-shorthand.rs:8:25
24 LL | let _ = RGB { r, g, b };
25 | ^ expected f64, found f32
26 help: you can cast an `f32` to `f64` in a lossless way
28 LL | let _ = RGB { r, g, b: b.into() };
31 error: aborting due to 3 previous errors
33 For more information about this error, try `rustc --explain E0308`.