Closed
Description
I'm ambivalent about this, but @oli-obk pointed this case out in #60159 (comment)
When providing a suggestion for a type error that would fix the problem, we have the following output:
error[E0308]: mismatched types
--> $DIR/type-mismatch-struct-field-shorthand-2.rs:5:19
|
LL | let _ = RGB { r, g, c };
| ^
| |
| expected f64, found f32
| help: you can convert an `f32` to `f64`: `r: r.into()`
we could change it to
error[E0308]: mismatched types
--> $DIR/type-mismatch-struct-field-shorthand-2.rs:5:19
|
LL | let _ = RGB { r, g, c };
| ^ help: you can convert an `f32` to `f64`: `r: r.into()`
but I'm not sure wether that is a good move.