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 };
5 | ^^^^^^^^^^^^^^^^ expected (), found bool
7 = note: expected type `()`
10 error: aborting due to previous error
12 For more information about this error, try `rustc --explain E0317`.