]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-4201.stderr
8abb7c3c9f585af1b5749a161ac4dba9f57e9be9
[rust.git] / src / test / ui / issues / issue-4201.stderr
1 error[E0317]: if may be missing an else clause
2   --> $DIR/issue-4201.rs:4:12
3    |
4 LL |       } else if false {
5    |  ____________^
6 LL | |
7 LL | |
8 LL | |
9 LL | |
10 LL | |         1
11    | |         - found here
12 LL | |     };
13    | |_____^ expected (), found integer
14    |
15    = note: expected unit type `()`
16                    found type `{integer}`
17    = note: `if` expressions without `else` evaluate to `()`
18    = help: consider adding an `else` block that evaluates to the expected type
19
20 error: aborting due to previous error
21
22 For more information about this error, try `rustc --explain E0317`.