about summary refs log tree commit diff
path: root/src/test/ui/integral-variable-unification-error.rs
blob: 3eefcdea3d902d4c43aaf12acc8f1752d2a76c09 (plain)
1
2
3
4
5
6
7
8
fn main() {
    let mut x = 2;
    x = 5.0;
    //~^ ERROR mismatched types
    //~| expected type `{integer}`
    //~| found type `{float}`
    //~| expected integer, found floating-point number
}