error[E0308]: mismatched types --> $DIR/liveness-missing-ret2.rs:1:11 | LL | fn f() -> isize { //~ ERROR mismatched types | - ^^^^^ expected isize, found () | | | this function's body doesn't return the expected type | = note: expected type `isize` found type `()` error: aborting due to previous error For more information about this error, try `rustc --explain E0308`.