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
498 B18 linesraw
1error[E0317]: if may be missing an else clause
2  --> $DIR/issue-4201.rs:4:12
3   |
4LL |       } else if false {
5   |  ____________^
6LL | |
7LL | |
8LL | |         1
9   | |         - found here
10LL | |     };
11   | |_____^ expected `()`, found integer
12   |
13   = note: `if` expressions without `else` evaluate to `()`
14   = help: consider adding an `else` block that evaluates to the expected type
15
16error: aborting due to previous error
17
18For more information about this error, try `rustc --explain E0317`.