]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generator/type-mismatch-error.stderr
Auto merge of #102655 - joboet:windows_tls_opt, r=ChrisDenton
[rust.git] / src / test / ui / generator / type-mismatch-error.stderr
1 error[E0308]: `if` and `else` have incompatible types
2   --> $DIR/type-mismatch-error.rs:16:17
3    |
4 LL | /             if false {
5 LL | |                 yield ();
6    | |                 ---------
7    | |                 |       |
8    | |                 |       help: consider removing this semicolon
9    | |                 expected because of this
10 LL | |             } else {
11 LL | |                 a
12    | |                 ^ expected `()`, found `u8`
13 LL | |
14 LL | |             }
15    | |_____________- `if` and `else` have incompatible types
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0308`.