summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/type-mismatch-struct-field-shorthand.rs
blob: 9d3a17a72b21e21ffdf1bca23c9f6950cfcbbf2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// run-rustfix
#![allow(dead_code)]

struct RGB { r: f64, g: f64, b: f64 }

fn main() {
    let (r, g, b): (f32, f32, f32) = (0., 0., 0.);
    let _ = RGB { r, g, b };
    //~^ ERROR mismatched types
    //~| ERROR mismatched types
    //~| ERROR mismatched types
}