fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
531 B15 linesraw
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 `()`, found `bool`
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`.