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

15 lines
395 B
Plaintext
Raw Normal View History

2019-02-25 17:56:53 -06:00
error[E0308]: mismatched types
2020-07-02 00:32:12 -05:00
--> $DIR/block-expression-remove-semicolon.rs:8:19
2019-02-25 17:56:53 -06:00
|
2020-07-02 00:32:12 -05:00
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`.