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