1 error[E0069]: `return;` in a function whose return type is not `()`
2 --> $DIR/return-unit-from-diverging.rs:15:5
4 LL | return; //~ ERROR in a function whose return type is not
5 | ^^^^^^ return type is not ()
7 error: aborting due to previous error
9 For more information about this error, try `rustc --explain E0069`.