]> git.lizzy.rs Git - rust.git/blob - tests/ui/integral-variable-unification-error.rs
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[rust.git] / tests / ui / integral-variable-unification-error.rs
1 fn main() {
2     let mut x //~ NOTE expected due to the type of this binding
3         =
4         2; //~ NOTE expected due to this value
5     x = 5.0;
6     //~^ ERROR mismatched types
7     //~| NOTE expected integer, found floating-point number
8 }