1 error[E0317]: `if` may be missing an `else` clause
2 --> $DIR/issue-66387-if-without-else.rs:3:5
7 | |_____^ expected `i32`, found `()`
9 = note: `if` expressions without `else` evaluate to `()`
10 = help: consider adding an `else` block that evaluates to the expected type
12 error: aborting due to previous error
14 For more information about this error, try `rustc --explain E0317`.