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