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`
7 help: you can convert an `f32` to an `f64`
9 LL | let _ = RGB { r: r.into(), g, b };
12 error[E0308]: mismatched types
13 --> $DIR/type-mismatch-struct-field-shorthand.rs:8:22
15 LL | let _ = RGB { r, g, b };
16 | ^ expected `f64`, found `f32`
18 help: you can convert an `f32` to an `f64`
20 LL | let _ = RGB { r, g: g.into(), b };
23 error[E0308]: mismatched types
24 --> $DIR/type-mismatch-struct-field-shorthand.rs:8:25
26 LL | let _ = RGB { r, g, b };
27 | ^ expected `f64`, found `f32`
29 help: you can convert an `f32` to an `f64`
31 LL | let _ = RGB { r, g, b: b.into() };
34 error: aborting due to 3 previous errors
36 For more information about this error, try `rustc --explain E0308`.