]> git.lizzy.rs Git - rust.git/blob - src/test/ui/integral-variable-unification-error.rs
Rollup merge of #89468 - FabianWolff:issue-89358, r=jackh726
[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 }