rust/src/test/ui/integral-variable-unification-error.rs
2019-11-18 11:03:03 -08:00

7 lines
133 B
Rust

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