@@ -9,7 +9,7 @@ fn main() {
9
9
"-" => |a, b| ( a - b + cap) as i32 ,
10
10
_ => unimplemented ! ( ) ,
11
11
} ) ( 5 , 5 ) ;
12
- //~^^^ ERROR 9:16: 9:43: `match` arms have incompatible types [E0308]
12
+ //~^^^ ERROR `match` arms have incompatible types
13
13
14
14
15
15
// We shouldn't coerce capturing closure to a non-capturing closure
@@ -18,7 +18,7 @@ fn main() {
18
18
"-" => |a, b| ( a - b + cap) as i32 ,
19
19
_ => unimplemented ! ( ) ,
20
20
} ) ( 5 , 5 ) ;
21
- //~^^^ ERROR 18:16: 18:43: `match` arms have incompatible types [E0308]
21
+ //~^^^ ERROR `match` arms have incompatible types
22
22
23
23
24
24
// We shouldn't coerce non-capturing closure to a capturing closure
@@ -27,13 +27,13 @@ fn main() {
27
27
"-" => |a, b| ( a - b) as i32 ,
28
28
_ => unimplemented ! ( ) ,
29
29
} ) ( 5 , 5 ) ;
30
- //~^^^ ERROR 27:16: 27:37: `match` arms have incompatible types [E0308]
30
+ //~^^^ ERROR `match` arms have incompatible types
31
31
32
32
// We shouldn't coerce capturing closure to a capturing closure
33
33
let _ = ( match "+" {
34
34
"+" => |a, b| ( a + b + cap) as i32 ,
35
35
"-" => |a, b| ( a - b + cap) as i32 ,
36
36
_ => unimplemented ! ( ) ,
37
37
} ) ( 5 , 5 ) ;
38
- //~^^^ ERROR 35:16: 35:43: `match` arms have incompatible types [E0308]
38
+ //~^^^ ERROR `match` arms have incompatible types
39
39
}
0 commit comments