]> git.proxmox.com Git - rustc.git/blob - src/test/ui/if/if-let-arm-types.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / if / if-let-arm-types.stderr
1 error[E0308]: if and else have incompatible types
2 --> $DIR/if-let-arm-types.rs:7:9
3 |
4 LL | / if let Some(b) = None {
5 LL | |
6 LL | | ()
7 | | -- expected because of this
8 LL | |
9 LL | | } else {
10 LL | | 1
11 | | ^ expected `()`, found integer
12 LL | | };
13 | |_____- if and else have incompatible types
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0308`.