]> git.lizzy.rs Git - rust.git/blob - src/test/ui/block-result/unexpected-return-on-unit.stderr
report the total number of errors on compilation failure
[rust.git] / src / test / ui / block-result / unexpected-return-on-unit.stderr
1 error[E0308]: mismatched types
2   --> $DIR/unexpected-return-on-unit.rs:19:5
3    |
4 19 |     foo()
5    |     ^^^^^ expected (), found usize
6    |
7    = note: expected type `()`
8               found type `usize`
9 help: did you mean to add a semicolon here?
10    |     foo();
11 help: possibly return type missing here?
12    | fn bar() -> usize {
13
14 error: aborting due to previous error
15