error[E0308]: mismatched types --> $DIR/issue-11714.rs:11:18 | LL | fn blah() -> i32 { //~ ERROR mismatched types | __________________^ LL | | 1 LL | | LL | | ; | | - help: consider removing this semicolon LL | | } | |_^ expected i32, found () | = note: expected type `i32` found type `()` error: aborting due to previous error For more information about this error, try `rustc --explain E0308`.