]> git.proxmox.com Git - rustc.git/blob - src/test/ui/block-result/unexpected-return-on-unit.stderr
Update unsuspicious file list
[rustc.git] / src / test / ui / block-result / unexpected-return-on-unit.stderr
1 error[E0308]: mismatched types
2 --> $DIR/unexpected-return-on-unit.rs:9:5
3 |
4 LL | foo()
5 | ^^^^^ expected `()`, found `usize`
6 |
7 help: consider using a semicolon here
8 |
9 LL | foo();
10 | +
11 help: try adding a return type
12 |
13 LL | fn bar() -> usize {
14 | ++++++++
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0308`.