1 error[E0317]: if may be missing an else clause
2 --> $DIR/if-without-else-result.rs:2:13
4 LL | let a = if true { true };
8 | expected (), found bool
10 = note: expected type `()`
12 = note: `if` expressions without `else` evaluate to `()`
13 = help: consider adding an `else` block that evaluates to the expected type
15 error: aborting due to previous error
17 For more information about this error, try `rustc --explain E0317`.