2014-10-30 15:29:13 -05:00
|
|
|
fn main() {
|
2021-05-06 21:09:35 -05:00
|
|
|
let mut x //~ NOTE expected due to the type of this binding
|
|
|
|
=
|
|
|
|
2; //~ NOTE expected due to this value
|
2014-10-30 15:29:13 -05:00
|
|
|
x = 5.0;
|
2015-01-12 00:01:44 -06:00
|
|
|
//~^ ERROR mismatched types
|
2021-05-06 21:09:35 -05:00
|
|
|
//~| NOTE expected integer, found floating-point number
|
2014-10-30 15:29:13 -05:00
|
|
|
}
|