2019-02-25 23:56:53 +00:00
|
|
|
error[E0308]: mismatched types
|
2020-12-30 23:09:22 +00:00
|
|
|
--> $DIR/old-closure-expression-remove-semicolon.rs:8:19
|
2019-02-25 23:56:53 +00:00
|
|
|
|
|
2020-07-02 05:32:12 +00:00
|
|
|
LL | let _x: i32 = {
|
|
|
|
| ___________________^
|
2019-03-12 19:06:13 +00:00
|
|
|
LL | |
|
|
|
|
LL | | foo();
|
2022-10-04 08:46:12 +00:00
|
|
|
| | - help: remove this semicolon to return this value
|
2019-02-25 23:56:53 +00:00
|
|
|
LL | | };
|
2019-11-15 17:37:01 +00:00
|
|
|
| |_____^ expected `i32`, found `()`
|
2019-02-25 23:56:53 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2019-02-25 23:56:53 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|