1 error[E0308]: mismatched types
2 --> $DIR/unexpected-return-on-unit.rs:9:5
5 | ^^^^^ expected (), found usize
7 help: try adding a semicolon
11 help: try adding a return type
13 LL | fn bar() -> usize {
16 error: aborting due to previous error
18 For more information about this error, try `rustc --explain E0308`.