]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/type-mismatch-struct-field-shorthand.stderr
Rollup merge of #65389 - ecstatic-morse:zero-sized-array-no-drop, r=eddyb
[rust.git] / src / test / ui / suggestions / type-mismatch-struct-field-shorthand.stderr
1 error[E0308]: mismatched types
2   --> $DIR/type-mismatch-struct-field-shorthand.rs:8:19
3    |
4 LL |     let _ = RGB { r, g, b };
5    |                   ^
6    |                   |
7    |                   expected f64, found f32
8    |                   help: you can convert an `f32` to `f64`: `r: r.into()`
9
10 error[E0308]: mismatched types
11   --> $DIR/type-mismatch-struct-field-shorthand.rs:8:22
12    |
13 LL |     let _ = RGB { r, g, b };
14    |                      ^
15    |                      |
16    |                      expected f64, found f32
17    |                      help: you can convert an `f32` to `f64`: `g: g.into()`
18
19 error[E0308]: mismatched types
20   --> $DIR/type-mismatch-struct-field-shorthand.rs:8:25
21    |
22 LL |     let _ = RGB { r, g, b };
23    |                         ^
24    |                         |
25    |                         expected f64, found f32
26    |                         help: you can convert an `f32` to `f64`: `b: b.into()`
27
28 error: aborting due to 3 previous errors
29
30 For more information about this error, try `rustc --explain E0308`.