summaryrefslogtreecommitdiffstats
path: root/src/test/ui/suggestions/type-mismatch-struct-field-shorthand.fixed
blob: 91758c0b218823d54d2fb1c13b613a922ff7f1fb (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: r.into(), g: g.into(), b: b.into() };
    //~^ ERROR mismatched types
    //~| ERROR mismatched types
    //~| ERROR mismatched types
}