]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/type-mismatch-struct-field-shorthand-2.rs
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / 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 }