@@ -31,21 +31,17 @@ macro_rules! check {
31
31
#[ cfg( $rev) ]
32
32
fn subtype<' x, ' y: ' x, ' z: ' y>( ) {
33
33
gimme:: <$t2>( None :: <$t1>) ;
34
- //[free_inv_x_vs_free_inv_y]~^ ERROR mismatched types
34
+ //[free_inv_x_vs_free_inv_y]~^ ERROR
35
35
}
36
36
37
37
#[ cfg( $rev) ]
38
38
fn supertype<' x, ' y: ' x, ' z: ' y>( ) {
39
39
gimme:: <$t1>( None :: <$t2>) ;
40
- //[bound_a_vs_free_x]~^ ERROR mismatched types
41
- //[free_x_vs_free_y]~^^ ERROR mismatched types
42
- //[bound_inv_a_b_vs_bound_inv_a]~^^^ ERROR mismatched types
43
- //[bound_a_b_ret_a_vs_bound_a_ret_a]~^^^^ ERROR mismatched types
44
- //[free_inv_x_vs_free_inv_y]~^^^^^ ERROR mismatched types
45
- //[bound_a_b_vs_bound_a]~^^^^^^ ERROR mismatched types
46
- //[bound_co_a_b_vs_bound_co_a]~^^^^^^^ ERROR mismatched types
47
- //[bound_contra_a_contra_b_ret_co_a]~^^^^^^^^ ERROR mismatched types
48
- //[bound_co_a_co_b_ret_contra_a]~^^^^^^^^^ ERROR mismatched types
40
+ //[bound_a_vs_free_x]~^ ERROR
41
+ //[free_x_vs_free_y]~^^ ERROR
42
+ //[bound_inv_a_b_vs_bound_inv_a]~^^^ ERROR
43
+ //[bound_a_b_ret_a_vs_bound_a_ret_a]~^^^^ ERROR
44
+ //[free_inv_x_vs_free_inv_y]~^^^^^ ERROR
49
45
}
50
46
}
51
47
}
@@ -103,4 +99,8 @@ fn main() {
103
99
//[bound_inv_a_vs_bound_inv_b]~^^^ ERROR compilation successful
104
100
//[bound_co_a_vs_bound_co_b]~^^^^ ERROR compilation successful
105
101
//[free_x_vs_free_x]~^^^^^ ERROR compilation successful
102
+ //[bound_a_b_vs_bound_a]~^^^^^^ ERROR compilation successful
103
+ //[bound_co_a_co_b_ret_contra_a]~^^^^^^^ ERROR compilation successful
104
+ //[bound_co_a_b_vs_bound_co_a]~^^^^^^^^ ERROR compilation successful
105
+ //[bound_contra_a_contra_b_ret_co_a]~^^^^^^^^^ ERROR compilation successful
106
106
}
0 commit comments