]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-4201.stderr
New upstream version 1.51.0+dfsg1
[rustc.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 | | 1
9 | | - found here
10 LL | | };
11 | |_____^ expected `()`, found integer
12 |
13 = note: `if` expressions without `else` evaluate to `()`
14 = help: consider adding an `else` block that evaluates to the expected type
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0317`.