summaryrefslogtreecommitdiffstats
path: root/src/test/ui/generator/type-mismatch-error.stderr
blob: 8f5949533e2c786c2ae948e883676d1dbda99282 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
error[E0308]: `if` and `else` have incompatible types
  --> $DIR/type-mismatch-error.rs:16:17
   |
LL | /             if false {
LL | |                 yield ();
   | |                 ---------
   | |                 |       |
   | |                 |       help: consider removing this semicolon
   | |                 expected because of this
LL | |             } else {
LL | |                 a
   | |                 ^ expected `()`, found `u8`
LL | |
LL | |             }
   | |_____________- `if` and `else` have incompatible types

error: aborting due to previous error

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