2019-02-25 17:56:53 -06:00
|
|
|
error[E0308]: mismatched types
|
2020-12-30 17:09:22 -06:00
|
|
|
--> $DIR/old-closure-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();
|
2022-10-04 03:46:12 -05:00
|
|
|
| | - help: remove this semicolon to return this value
|
2019-02-25 17:56:53 -06:00
|
|
|
LL | | };
|
2019-11-15 11:37:01 -06:00
|
|
|
| |_____^ expected `i32`, found `()`
|
2019-02-25 17:56:53 -06:00
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2019-02-25 17:56:53 -06:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|