fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0317]: `if` may be missing an `else` clause 2 --> $DIR/if-without-else-result.rs:2:13 3 | 4LL | let a = if true { true }; 5 | ^^^^^^^^^^----^^ 6 | | | 7 | | found here 8 | expected `bool`, found `()` 9 | 10 = note: `if` expressions without `else` evaluate to `()` 11 = help: consider adding an `else` block that evaluates to the expected type 12 13error: aborting due to previous error 14 15For more information about this error, try `rustc --explain E0317`.