]> git.lizzy.rs Git - rust.git/blob - src/test/ui/integral-variable-unification-error.rs
Auto merge of #75936 - sdroege:chunks-exact-construction-bounds-check, r=nagisa
[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 integer, found floating-point number
6 }