]> git.lizzy.rs Git - rust.git/blob - src/test/ui/if/if-let-arm-types.stderr
Add riscv64gc-unknown-none-elf target
[rust.git] / src / test / ui / if / if-let-arm-types.stderr
1 error[E0308]: `if let` arms have incompatible types
2   --> $DIR/if-let-arm-types.rs:2:5
3    |
4 LL | /     if let Some(b) = None { //~ ERROR: `if let` arms have incompatible types
5 LL | |         //~^ expected (), found integer
6 LL | |         //~| expected type `()`
7 LL | |         //~| found type `{integer}`
8 ...  |
9 LL | |         1
10 LL | |     };
11    | |_____^ expected (), found integer
12    |
13    = note: expected type `()`
14               found type `{integer}`
15 note: `if let` arm with an incompatible type
16   --> $DIR/if-let-arm-types.rs:7:12
17    |
18 LL |       } else {
19    |  ____________^
20 LL | |         1
21 LL | |     };
22    | |_____^
23
24 error: aborting due to previous error
25
26 For more information about this error, try `rustc --explain E0308`.