]> git.lizzy.rs Git - rust.git/blob - src/test/ui/integral-variable-unification-error.rs
Auto merge of #62748 - luca-barbieri:optimize-refcell-borrow, r=RalfJung
[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 }