rust/tests/ui/integral-variable-unification-error.stderr

15 lines
431 B
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error[E0308]: mismatched types
--> $DIR/integral-variable-unification-error.rs:5:9
2018-08-08 07:28:26 -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;
| ^^^ 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`.