]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/type-mismatch-struct-field-shorthand.rs
Auto merge of #106696 - kylematsuda:early-binder, r=lcnr
[rust.git] / tests / ui / suggestions / type-mismatch-struct-field-shorthand.rs
1 // run-rustfix
2 #![allow(dead_code)]
3
4 struct RGB { r: f64, g: f64, b: f64 }
5
6 fn main() {
7     let (r, g, b): (f32, f32, f32) = (0., 0., 0.);
8     let _ = RGB { r, g, b };
9     //~^ ERROR mismatched types
10     //~| ERROR mismatched types
11     //~| ERROR mismatched types
12 }