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
496 B16 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 | |         765
7   | |         --- found here
8LL | |     };
9   | |_____^ expected `()`, found integer
10   |
11   = note: `if` expressions without `else` evaluate to `()`
12   = help: consider adding an `else` block that evaluates to the expected type
13
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0317`.