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