1 error[E0308]: mismatched types
2 --> $DIR/type-mismatch-struct-field-shorthand-2.rs:5:19
4 LL | let _ = RGB { r, g, c };
5 | ^ expected `f64`, found `f32`
7 help: you can convert an `f32` to an `f64`
9 LL | let _ = RGB { r: r.into(), g, c };
12 error[E0308]: mismatched types
13 --> $DIR/type-mismatch-struct-field-shorthand-2.rs:5:22
15 LL | let _ = RGB { r, g, c };
16 | ^ expected `f64`, found `f32`
18 help: you can convert an `f32` to an `f64`
20 LL | let _ = RGB { r, g: g.into(), c };
23 error[E0560]: struct `RGB` has no field named `c`
24 --> $DIR/type-mismatch-struct-field-shorthand-2.rs:5:25
26 LL | let _ = RGB { r, g, c };
27 | ^ help: a field with a similar name exists: `b`
29 error: aborting due to 3 previous errors
31 Some errors have detailed explanations: E0308, E0560.
32 For more information about an error, try `rustc --explain E0308`.