1 error[E0308]: mismatched types
2 --> $DIR/match-type-err-first-arm.rs:8:15
4 LL | fn test_func1(n: i32) -> i32 {
5 | --- expected `i32` because of return type
8 | ^^^ expected `i32`, found `char`
10 error[E0308]: `match` arms have incompatible types
11 --> $DIR/match-type-err-first-arm.rs:18:14
13 LL | let x = match n {
16 | | --- this is found to be of type `char`
18 | | ^^ expected `char`, found integer
22 | |_____- `match` arms have incompatible types
24 error[E0308]: `match` arms have incompatible types
25 --> $DIR/match-type-err-first-arm.rs:34:14
27 LL | let x = match n {
34 | | --- this and all prior arms are found to be of type `char`
37 | | ^^ expected `char`, found integer
41 | |_____- `match` arms have incompatible types
43 error[E0308]: `match` arms have incompatible types
44 --> $DIR/match-type-err-first-arm.rs:46:17
46 LL | / match Some(0u32) {
49 | | - this is found to be of type `u32`
52 | | ^^ expected `u32`, found `()`
56 | |_____- `match` arms have incompatible types
58 error: aborting due to 4 previous errors
60 For more information about this error, try `rustc --explain E0308`.