blob: 2ce12220723df745d7986ea148ccc39722f5502e [file] [log] [blame]
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`
}