fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
575 B20 linesraw
1error[E0317]: if may be missing an else clause
2  --> $DIR/issue-19991.rs:5:5
3   |
4LL | /     if let Some(homura) = Some("madoka") {
5LL | |
6LL | |
7LL | |
8LL | |         765
9   | |         --- found here
10LL | |     };
11   | |_____^ expected (), found integer
12   |
13   = note: expected type `()`
14              found type `{integer}`
15   = note: `if` expressions without `else` evaluate to `()`
16   = help: consider adding an `else` block that evaluates to the expected type
17
18error: aborting due to previous error
19
20For more information about this error, try `rustc --explain E0317`.