]> git.lizzy.rs Git - rust.git/blob - src/test/ui/integral-variable-unification-error.rs
Merge commit '57b3c4b90f4346b3990c1be387c3b3ca7b78412c' into clippyup
[rust.git] / src / test / 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 }