rust/src/test/ui/block-expression-remove-semicolon.stderr

15 lines
393 B
Plaintext
Raw Normal View History

2019-02-25 17:56:53 -06:00
error[E0308]: mismatched types
--> $DIR/block-expression-remove-semicolon.rs:6:18
|
LL | let x: i32 = {
| __________________^
2019-03-12 14:06:13 -05:00
LL | |
LL | | foo();
2019-02-25 17:56:53 -06:00
| | - help: consider removing this semicolon
LL | | };
| |_____^ expected `i32`, found `()`
2019-02-25 17:56:53 -06:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.