summaryrefslogtreecommitdiffstats
path: root/src/test/ui/suggestions/type-mismatch-struct-field-shorthand-2.rs
blob: 2ce12220723df745d7986ea148ccc39722f5502e (plain)
1
2
3
4
5
6
7
8
9
struct RGB { r: f64, g: f64, b: f64 }

fn main() {
    let (r, g, c): (f32, f32, f32) = (0., 0., 0.);
    let _ = RGB { r, g, c };
    //~^ ERROR mismatched types
    //~| ERROR mismatched types
    //~| ERROR struct `RGB` has no field named `c`
}