2014-10-30 15:29:13 -05:00
|
|
|
fn main() {
|
|
|
|
let mut x = 2;
|
|
|
|
x = 5.0;
|
2015-01-12 00:01:44 -06:00
|
|
|
//~^ ERROR mismatched types
|
2016-07-28 11:49:31 -05:00
|
|
|
//~| expected type `{integer}`
|
|
|
|
//~| found type `{float}`
|
2018-12-31 19:43:08 -06:00
|
|
|
//~| expected integer, found floating-point number
|
2014-10-30 15:29:13 -05:00
|
|
|
}
|