fork/rust

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

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

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