]> git.lizzy.rs Git - rust.git/blob - src/test/ui/block-expression-remove-semicolon.stderr
29a53bed7d7448821bf98c6f576e94d465cdc3f1
[rust.git] / src / test / ui / block-expression-remove-semicolon.stderr
1 error[E0308]: mismatched types
2   --> $DIR/block-expression-remove-semicolon.rs:6:18
3    |
4 LL |       let x: i32 = {
5    |  __________________^
6 LL | |
7 LL | |         foo();
8    | |              - help: consider removing this semicolon
9 LL | |     };
10    | |_____^ expected i32, found ()
11    |
12    = note:   expected type `i32`
13            found unit type `()`
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0308`.