]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/type-mismatch-struct-field-shorthand-2.rs
Rollup merge of #65389 - ecstatic-morse:zero-sized-array-no-drop, r=eddyb
[rust.git] / src / test / ui / suggestions / type-mismatch-struct-field-shorthand-2.rs
1 struct RGB { r: f64, g: f64, b: f64 }
2
3 fn main() {
4     let (r, g, c): (f32, f32, f32) = (0., 0., 0.);
5     let _ = RGB { r, g, c };
6     //~^ ERROR mismatched types
7     //~| ERROR mismatched types
8     //~| ERROR struct `RGB` has no field named `c`
9 }