1 2 3 4 5 6
fn main() { let mut x = 2; x = 5.0; //~^ ERROR mismatched types //~| expected integer, found floating-point number }