]> git.lizzy.rs Git - rust.git/blob - src/test/ui/block-result/unexpected-return-on-unit.stderr
Remove E0308 note when primary label has all info
[rust.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: try adding a semicolon
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`.