]> git.lizzy.rs Git - rust.git/blob - tests/ui/closures/old-closure-expression-remove-semicolon.stderr
Rollup merge of #106707 - ehuss:remove-dupe-sha-1, r=Mark-Simulacrum
[rust.git] / tests / ui / closures / old-closure-expression-remove-semicolon.stderr
1 error[E0308]: mismatched types
2   --> $DIR/old-closure-expression-remove-semicolon.rs:8:19
3    |
4 LL |       let _x: i32 = {
5    |  ___________________^
6 LL | |
7 LL | |         foo();
8    | |              - help: remove this semicolon to return this value
9 LL | |     };
10    | |_____^ expected `i32`, found `()`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0308`.