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