]> git.lizzy.rs Git - rust.git/blob - src/test/ui/block-result/issue-11714.stderr
54c1bb220a912f734d5feb6fd7f0acc0096ea11d
[rust.git] / src / test / ui / block-result / issue-11714.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-11714.rs:1:14
3    |
4 LL | fn blah() -> i32 {
5    |    ----      ^^^ expected i32, found ()
6    |    |
7    |    implicitly returns `()` as its body has no tail or `return` expression
8 ...
9 LL |     ;
10    |     - help: consider removing this semicolon
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`.