1 error[E0069]: `return;` in a function whose return type is not `()`
2 --> $DIR/ret-non-nil.rs:15:19
4 LL | fn g() -> isize { return; }
5 | ^^^^^^ return type is not ()
7 error: aborting due to previous error
9 For more information about this error, try `rustc --explain E0069`.