]>
Commit | Line | Data |
---|---|---|
8faf50e0 | 1 | error[E0317]: if may be missing an else clause |
0731742a | 2 | --> $DIR/issue-19991.rs:5:5 |
8faf50e0 | 3 | | |
532ac7d7 XL |
4 | LL | / if let Some(homura) = Some("madoka") { |
5 | LL | | | |
8faf50e0 | 6 | LL | | 765 |
48663c56 | 7 | | | --- found here |
8faf50e0 | 8 | LL | | }; |
60c5eb7d | 9 | | |_____^ expected `()`, found integer |
8faf50e0 | 10 | | |
48663c56 XL |
11 | = note: `if` expressions without `else` evaluate to `()` |
12 | = help: consider adding an `else` block that evaluates to the expected type | |
8faf50e0 XL |
13 | |
14 | error: aborting due to previous error | |
15 | ||
16 | For more information about this error, try `rustc --explain E0317`. |