1 error[E0308]: `match` arms have incompatible types
2 --> $DIR/match-incompat-type-semi.rs:11:13
4 LL | let _ = match Some(42) {
8 | | - this is found to be of type `{integer}`
14 | | |help: consider removing this semicolon
15 | | expected integer, found `()`
19 | |_____- `match` arms have incompatible types
21 error[E0308]: `if` and `else` have incompatible types
22 --> $DIR/match-incompat-type-semi.rs:20:9
24 LL | let _ = if let Some(x) = Some(42) {
27 | | - expected because of this
32 | | |help: consider removing this semicolon
33 | | expected integer, found `()`
37 | |_____- `if` and `else` have incompatible types
39 error[E0308]: `match` arms have incompatible types
40 --> $DIR/match-incompat-type-semi.rs:30:13
42 LL | let _ = match Some(42) {
46 | | - this is found to be of type `{integer}`
50 | | ^^^ expected integer, found `()`
54 | |_____- `match` arms have incompatible types
56 error[E0308]: `match` arms have incompatible types
57 --> $DIR/match-incompat-type-semi.rs:39:17
59 LL | let _ = match Some(42) {
60 | -------------- `match` arms have incompatible types
63 | - this is found to be of type `{integer}`
68 | |_________^ expected integer, found `()`
70 error[E0308]: `match` arms have incompatible types
71 --> $DIR/match-incompat-type-semi.rs:50:17
73 LL | let _ = match Some(42) {
74 | -------------- `match` arms have incompatible types
75 LL | Some(x) => "rust-lang.org"
76 | ____________________-
79 LL | | .chain(Some(x as u8 as char))
81 LL | | .any(char::is_alphanumeric),
82 | |_______________________________________- this is found to be of type `bool`
84 | ^^ expected `bool`, found `()`
86 error: aborting due to 5 previous errors
88 For more information about this error, try `rustc --explain E0308`.