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