]> git.lizzy.rs Git - rust.git/blob - src/test/ui/integral-variable-unification-error.rs
3eefcdea3d902d4c43aaf12acc8f1752d2a76c09
[rust.git] / src / test / ui / integral-variable-unification-error.rs
1 fn main() {
2     let mut x = 2;
3     x = 5.0;
4     //~^ ERROR mismatched types
5     //~| expected type `{integer}`
6     //~| found type `{float}`
7     //~| expected integer, found floating-point number
8 }