rust/tests/ui/closures/old-closure-expression-remove-semicolon.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
413 B
Plaintext
Raw Normal View History

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();
| | - help: remove this semicolon to return this value
2019-02-25 23:56:53 +00:00
LL | | };
| |_____^ expected `i32`, found `()`
2019-02-25 23:56:53 +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`.