]> git.lizzy.rs Git - rust.git/blob - src/test/ui/integral-variable-unification-error.rs
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[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 }