File tree 2 files changed +5
-9
lines changed
2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -52,10 +52,6 @@ macro_rules! check {
52
52
//[bound_inv_a_b_vs_bound_inv_a]~^^^ ERROR mismatched types
53
53
//[bound_a_b_ret_a_vs_bound_a_ret_a]~^^^^ ERROR mismatched types
54
54
//[free_inv_x_vs_free_inv_y]~^^^^^ ERROR mismatched types
55
- //[bound_a_b_vs_bound_a]~^^^^^^ ERROR mismatched types
56
- //[bound_co_a_b_vs_bound_co_a]~^^^^^^^ ERROR mismatched types
57
- //[bound_contra_a_contra_b_ret_co_a]~^^^^^^^^ ERROR mismatched types
58
- //[bound_co_a_co_b_ret_contra_a]~^^^^^^^^^ ERROR mismatched types
59
55
}
60
56
}
61
57
}
@@ -113,4 +109,8 @@ fn main() {
113
109
//[bound_inv_a_vs_bound_inv_b]~^^^ ERROR compilation successful
114
110
//[bound_co_a_vs_bound_co_b]~^^^^ ERROR compilation successful
115
111
//[free_x_vs_free_x]~^^^^^ ERROR compilation successful
112
+ //[bound_a_b_vs_bound_a]~^^^^^^ ERROR compilation successful
113
+ //[bound_co_a_b_vs_bound_co_a]~^^^^^^^ ERROR compilation successful
114
+ //[bound_contra_a_contra_b_ret_co_a]~^^^^^^^^ ERROR compilation successful
115
+ //[bound_co_a_co_b_ret_contra_a]~^^^^^^^^^ ERROR compilation successful
116
116
}
Original file line number Diff line number Diff line change @@ -47,8 +47,7 @@ fn baz(x: &S) -> &S {
47
47
fn supply_F ( ) {
48
48
want_F ( foo) ;
49
49
50
- // FIXME(#33684) -- this should be a subtype, but current alg. rejects it incorrectly
51
- want_F ( bar) ; //~ ERROR E0308
50
+ want_F ( bar) ;
52
51
53
52
want_F ( baz) ;
54
53
}
@@ -58,9 +57,6 @@ fn supply_G() {
58
57
want_G ( bar) ;
59
58
want_G ( baz) ;
60
59
//~^ ERROR mismatched types
61
- //~| expected type `for<'cx> fn(&'cx S) -> &'static S`
62
- //~| found type `for<'r> fn(&'r S) -> &'r S {baz}`
63
- //~| expected concrete lifetime, found bound lifetime parameter 'cx
64
60
}
65
61
66
62
pub fn main ( ) {
You can’t perform that action at this time.
0 commit comments