Files
rust/src/test/ui/integral-variable-unification-error.rs
T
Mark Rousskov 2a663555dd Remove licenses
2018-12-25 21:08:33 -07:00

9 lines
210 B
Rust

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