6 fn test_func1(n: i32) -> i32 { //~ NOTE expected `i32` because of return type
9 //~^ ERROR mismatched types
10 //~| NOTE expected `i32`, found `char`
15 fn test_func2(n: i32) -> i32 {
16 let x = match n { //~ NOTE `match` arms have incompatible types
17 12 => 'b', //~ NOTE this is found to be of type `char`
19 //~^ ERROR `match` arms have incompatible types
20 //~| NOTE expected `char`, found integer
25 fn test_func3(n: i32) -> i32 {
26 let x = match n { //~ NOTE `match` arms have incompatible types
33 //~^ NOTE this and all prior arms are found to be of type `char`
35 //~^ ERROR `match` arms have incompatible types
36 //~| NOTE expected `char`, found integer
42 match Some(0u32) { //~ NOTE `match` arms have incompatible types
44 x //~ NOTE this is found to be of type `u32`
47 //~^ ERROR `match` arms have incompatible types
48 //~| NOTE expected `u32`, found `()`