summary refs log tree commit diff
path: root/src/test/ui/issue-4201.stderr
blob: 40de077ce764f023897eeb7760309caec362d952 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
error[E0317]: if may be missing an else clause
  --> $DIR/issue-4201.rs:14:12
   |
LL |       } else if false {
   |  ____________^
LL | | //~^ ERROR if may be missing an else clause
LL | | //~| expected type `()`
LL | | //~| found type `{integer}`
LL | | //~| expected (), found integral variable
LL | |         1
LL | |     };
   | |_____^ expected (), found integral variable
   |
   = note: expected type `()`
              found type `{integer}`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0317`.