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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
431 B
Plaintext
Raw Normal View History

2018-08-08 12:28:26 +00:00
error[E0308]: mismatched types
--> $DIR/integral-variable-unification-error.rs:5:9
2018-08-08 12:28:26 +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;
| ^^^ expected integer, found floating-point number
2018-08-08 12:28:26 +00:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.