@@ -64,64 +64,64 @@ LL | lub!(lhs, rhs_closure);
6464 = note: closure has signature: `for<'a> fn(&'static (), &'a ())`
6565
6666error[E0308]: `if` and `else` have incompatible types
67- --> $DIR/leak_check_lub_to_fnptr.rs:56 :23
67+ --> $DIR/leak_check_lub_to_fnptr.rs:59 :23
6868 |
69- LL | let lhs_closure = |_: &(), _: &'static ()| {};
70- | ------------------------ the expected closure
71- LL | let rhs_closure = |_: &'static (), _: &'static ()| {};
72- | -------------------------------- the found closure
69+ LL | let lhs_closure = |_: &(), _: &'static (), _: &() | {};
70+ | -------------------------------- the expected closure
71+ LL | let rhs_closure = |_: &'static (), _: &'static (), _: &() | {};
72+ | ---------------------------------------- the found closure
7373LL |
7474LL | lub!(lhs_closure, rhs_closure);
7575 | ----------- ^^^^^^^^^^^ one type is more general than the other
7676 | |
7777 | expected because of this
7878 |
79- = note: expected closure `{closure@$DIR/leak_check_lub_to_fnptr.rs:53 :23: 53:47 }`
80- found closure `{closure@$DIR/leak_check_lub_to_fnptr.rs:54 :23: 54:55 }`
81- = note: closure has signature: `fn(&'static (), &'static ())`
79+ = note: expected closure `{closure@$DIR/leak_check_lub_to_fnptr.rs:56 :23: 56:55 }`
80+ found closure `{closure@$DIR/leak_check_lub_to_fnptr.rs:57 :23: 57:63 }`
81+ = note: closure has signature: `for<'a> fn(&'static (), &'static (), &'a ())`
8282 = note: no two closures, even if identical, have the same type
8383 = help: consider boxing your closure and/or using it as a trait object
8484
8585error[E0308]: `if` and `else` have incompatible types
86- --> $DIR/leak_check_lub_to_fnptr.rs:58 :23
86+ --> $DIR/leak_check_lub_to_fnptr.rs:61 :23
8787 |
88- LL | let lhs_closure = |_: &(), _: &'static ()| {};
89- | ------------------------ the found closure
90- LL | let rhs_closure = |_: &'static (), _: &'static ()| {};
91- | -------------------------------- the expected closure
88+ LL | let lhs_closure = |_: &(), _: &'static (), _: &() | {};
89+ | -------------------------------- the found closure
90+ LL | let rhs_closure = |_: &'static (), _: &'static (), _: &() | {};
91+ | ---------------------------------------- the expected closure
9292...
9393LL | lub!(rhs_closure, lhs_closure);
9494 | ----------- ^^^^^^^^^^^ one type is more general than the other
9595 | |
9696 | expected because of this
9797 |
98- = note: expected closure `{closure@$DIR/leak_check_lub_to_fnptr.rs:54 :23: 54:55 }`
99- found closure `{closure@$DIR/leak_check_lub_to_fnptr.rs:53 :23: 53:47 }`
100- = note: closure has signature: `for<'a> fn(&'a (), &'static ())`
98+ = note: expected closure `{closure@$DIR/leak_check_lub_to_fnptr.rs:57 :23: 57:63 }`
99+ found closure `{closure@$DIR/leak_check_lub_to_fnptr.rs:56 :23: 56:55 }`
100+ = note: closure has signature: `for<'a, 'b > fn(&'a (), &'static (), &'b ())`
101101 = note: no two closures, even if identical, have the same type
102102 = help: consider boxing your closure and/or using it as a trait object
103103
104104error[E0308]: `if` and `else` have incompatible types
105- --> $DIR/leak_check_lub_to_fnptr.rs:67 :21
105+ --> $DIR/leak_check_lub_to_fnptr.rs:73 :21
106106 |
107107LL | lub!(lhs_fndef, rhs_fndef);
108108 | --------- ^^^^^^^^^ one type is more general than the other
109109 | |
110110 | expected because of this
111111 |
112- = note: expected fn item `for<'a> fn(&'a (), &'static ()) {order_dependence_fndefs::lhs_fndef}`
113- found fn item `fn(&'static (), &'static ()) {order_dependence_fndefs::rhs_fndef}`
112+ = note: expected fn item `for<'a, 'b > fn(&'a (), &'static (), &'b ()) {order_dependence_fndefs::lhs_fndef}`
113+ found fn item `for<'a> fn(&'static (), &'static (), &'a ()) {order_dependence_fndefs::rhs_fndef}`
114114
115115error[E0308]: `if` and `else` have incompatible types
116- --> $DIR/leak_check_lub_to_fnptr.rs:69 :21
116+ --> $DIR/leak_check_lub_to_fnptr.rs:75 :21
117117 |
118118LL | lub!(rhs_fndef, lhs_fndef);
119119 | --------- ^^^^^^^^^ one type is more general than the other
120120 | |
121121 | expected because of this
122122 |
123- = note: expected fn item `fn(&'static (), &'static ()) {order_dependence_fndefs::rhs_fndef}`
124- found fn item `for<'a> fn(&'a (), &'static ()) {order_dependence_fndefs::lhs_fndef}`
123+ = note: expected fn item `for<'a> fn(&'static (), &'static (), &'a ()) {order_dependence_fndefs::rhs_fndef}`
124+ found fn item `for<'a, 'b > fn(&'a (), &'static (), &'b ()) {order_dependence_fndefs::lhs_fndef}`
125125
126126error: aborting due to 9 previous errors
127127
0 commit comments