2018-08-08 07:28:26 -05:00
|
|
|
error[E0308]: mismatched types
|
2021-05-06 21:09:35 -05:00
|
|
|
--> $DIR/integral-variable-unification-error.rs:5:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2021-05-06 21:09:35 -05:00
|
|
|
LL | let mut x
|
|
|
|
| ----- expected due to the type of this binding
|
|
|
|
LL | =
|
|
|
|
LL | 2;
|
|
|
|
| - expected due to this value
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | x = 5.0;
|
2018-12-31 19:43:08 -06:00
|
|
|
| ^^^ expected integer, found floating-point number
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|