]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-19991.stderr
Rollup merge of #60492 - acrrd:issues/54054_chain, r=SimonSapin
[rust.git] / src / test / ui / issues / issue-19991.stderr
1 error[E0317]: if may be missing an else clause
2   --> $DIR/issue-19991.rs:5:5
3    |
4 LL | /     if let Some(homura) = Some("madoka") {
5 LL | |
6 LL | |
7 LL | |
8 LL | |         765
9    | |         --- found here
10 LL | |     };
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
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0317`.