// 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 | |
} |