@@ -39,64 +39,64 @@ LL | lub!(lhs_closure, rhs_closure);
3939 = help: consider boxing your closure and/or using it as a trait object
4040
4141error[E0308]: `if` and `else` have incompatible types
42- --> $DIR/leak_check_lub_to_fnptr.rs:42 :23
42+ --> $DIR/leak_check_lub_to_fnptr.rs:45 :23
4343 |
44- LL | let lhs_closure = |_: &(), _: &'static ()| {};
45- | ------------------------ the expected closure
46- LL | let rhs_closure = |_: &'static (), _: &'static ()| {};
47- | -------------------------------- the found closure
44+ LL | let lhs_closure = |_: &(), _: &'static (), _: &() | {};
45+ | -------------------------------- the expected closure
46+ LL | let rhs_closure = |_: &'static (), _: &'static (), _: &() | {};
47+ | ---------------------------------------- the found closure
4848LL |
4949LL | lub!(lhs_closure, rhs_closure);
5050 | ----------- ^^^^^^^^^^^ one type is more general than the other
5151 | |
5252 | expected because of this
5353 |
54- = note: expected closure `{closure@$DIR/leak_check_lub_to_fnptr.rs:39 :23: 39:47 }`
55- found closure `{closure@$DIR/leak_check_lub_to_fnptr.rs:40 :23: 40:55 }`
56- = note: closure has signature: `fn(&'static (), &'static ())`
54+ = note: expected closure `{closure@$DIR/leak_check_lub_to_fnptr.rs:42 :23: 42:55 }`
55+ found closure `{closure@$DIR/leak_check_lub_to_fnptr.rs:43 :23: 43:63 }`
56+ = note: closure has signature: `for<'a> fn(&'static (), &'static (), &'a ())`
5757 = note: no two closures, even if identical, have the same type
5858 = help: consider boxing your closure and/or using it as a trait object
5959
6060error[E0308]: `if` and `else` have incompatible types
61- --> $DIR/leak_check_lub_to_fnptr.rs:44 :23
61+ --> $DIR/leak_check_lub_to_fnptr.rs:47 :23
6262 |
63- LL | let lhs_closure = |_: &(), _: &'static ()| {};
64- | ------------------------ the found closure
65- LL | let rhs_closure = |_: &'static (), _: &'static ()| {};
66- | -------------------------------- the expected closure
63+ LL | let lhs_closure = |_: &(), _: &'static (), _: &() | {};
64+ | -------------------------------- the found closure
65+ LL | let rhs_closure = |_: &'static (), _: &'static (), _: &() | {};
66+ | ---------------------------------------- the expected closure
6767...
6868LL | lub!(rhs_closure, lhs_closure);
6969 | ----------- ^^^^^^^^^^^ one type is more general than the other
7070 | |
7171 | expected because of this
7272 |
73- = note: expected closure `{closure@$DIR/leak_check_lub_to_fnptr.rs:40 :23: 40:55 }`
74- found closure `{closure@$DIR/leak_check_lub_to_fnptr.rs:39 :23: 39:47 }`
75- = note: closure has signature: `for<'a> fn(&'a (), &'static ())`
73+ = note: expected closure `{closure@$DIR/leak_check_lub_to_fnptr.rs:43 :23: 43:63 }`
74+ found closure `{closure@$DIR/leak_check_lub_to_fnptr.rs:42 :23: 42:55 }`
75+ = note: closure has signature: `for<'a, 'b > fn(&'a (), &'static (), &'b ())`
7676 = note: no two closures, even if identical, have the same type
7777 = help: consider boxing your closure and/or using it as a trait object
7878
7979error[E0308]: `if` and `else` have incompatible types
80- --> $DIR/leak_check_lub_to_fnptr.rs:54 :21
80+ --> $DIR/leak_check_lub_to_fnptr.rs:60 :21
8181 |
8282LL | lub!(lhs_fndef, rhs_fndef);
8383 | --------- ^^^^^^^^^ one type is more general than the other
8484 | |
8585 | expected because of this
8686 |
87- = note: expected fn item `for<'a> fn(&'a (), &'static ()) {order_dependence_fndefs::lhs_fndef}`
88- found fn item `fn(&'static (), &'static ()) {order_dependence_fndefs::rhs_fndef}`
87+ = note: expected fn item `for<'a, 'b > fn(&'a (), &'static (), &'b ()) {order_dependence_fndefs::lhs_fndef}`
88+ found fn item `for<'a> fn(&'static (), &'static (), &'a ()) {order_dependence_fndefs::rhs_fndef}`
8989
9090error[E0308]: `if` and `else` have incompatible types
91- --> $DIR/leak_check_lub_to_fnptr.rs:56 :21
91+ --> $DIR/leak_check_lub_to_fnptr.rs:62 :21
9292 |
9393LL | lub!(rhs_fndef, lhs_fndef);
9494 | --------- ^^^^^^^^^ one type is more general than the other
9595 | |
9696 | expected because of this
9797 |
98- = note: expected fn item `fn(&'static (), &'static ()) {order_dependence_fndefs::rhs_fndef}`
99- found fn item `for<'a> fn(&'a (), &'static ()) {order_dependence_fndefs::lhs_fndef}`
98+ = note: expected fn item `for<'a> fn(&'static (), &'static (), &'a ()) {order_dependence_fndefs::rhs_fndef}`
99+ found fn item `for<'a, 'b > fn(&'a (), &'static (), &'b ()) {order_dependence_fndefs::lhs_fndef}`
100100
101101error: aborting due to 7 previous errors
102102
0 commit comments