]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-19991.stderr
Auto merge of #54720 - davidtwco:issue-51191, r=nikomatsakis
[rust.git] / src / test / ui / issues / issue-19991.stderr
1 error[E0317]: if may be missing an else clause
2   --> $DIR/issue-19991.rs:15:5
3    |
4 LL | /     if let Some(homura) = Some("madoka") { //~  ERROR missing an else clause
5 LL | |                                            //~| expected type `()`
6 LL | |                                            //~| found type `{integer}`
7 LL | |                                            //~| expected (), found integral variable
8 LL | |         765
9 LL | |     };
10    | |_____^ expected (), found integral variable
11    |
12    = note: expected type `()`
13               found type `{integer}`
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0317`.