@@ -13,7 +13,7 @@ note: required by a bound in `f1`
1313 |
1414LL | fn f1<F>(_: F) where F: Fn(&(), &()) {}
1515 | ^^^^^^^^^^^^ required by this bound in `f1`
16- help: consider borrowing the argument
16+ help: consider adjusting the signature so it borrows its arguments
1717 |
1818LL | f1(|_: &(), _: &()| {});
1919 | + +
@@ -33,7 +33,7 @@ note: required by a bound in `f2`
3333 |
3434LL | fn f2<F>(_: F) where F: for<'a> Fn(&'a (), &()) {}
3535 | ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `f2`
36- help: consider borrowing the argument
36+ help: consider adjusting the signature so it borrows its arguments
3737 |
3838LL | f2(|_: &(), _: &()| {});
3939 | + +
@@ -53,7 +53,7 @@ note: required by a bound in `f3`
5353 |
5454LL | fn f3<'a, F>(_: F) where F: Fn(&'a (), &()) {}
5555 | ^^^^^^^^^^^^^^^ required by this bound in `f3`
56- help: consider borrowing the argument
56+ help: consider adjusting the signature so it borrows its arguments
5757 |
5858LL | f3(|_: &(), _: &()| {});
5959 | + +
@@ -73,7 +73,7 @@ note: required by a bound in `f4`
7373 |
7474LL | fn f4<F>(_: F) where F: for<'r> Fn(&(), &'r ()) {}
7575 | ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `f4`
76- help: consider borrowing the argument
76+ help: consider adjusting the signature so it borrows its arguments
7777 |
7878LL | f4(|_: &(), _: &()| {});
7979 | + +
@@ -93,7 +93,7 @@ note: required by a bound in `f5`
9393 |
9494LL | fn f5<F>(_: F) where F: for<'r> Fn(&'r (), &'r ()) {}
9595 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `f5`
96- help: consider borrowing the argument
96+ help: consider adjusting the signature so it borrows its arguments
9797 |
9898LL | f5(|_: &(), _: &()| {});
9999 | + +
@@ -113,7 +113,7 @@ note: required by a bound in `g1`
113113 |
114114LL | fn g1<F>(_: F) where F: Fn(&(), Box<dyn Fn(&())>) {}
115115 | ^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `g1`
116- help: consider borrowing the argument
116+ help: consider adjusting the signature so it borrows its argument
117117 |
118118LL | g1(|_: &(), _: ()| {});
119119 | +
@@ -133,7 +133,7 @@ note: required by a bound in `g2`
133133 |
134134LL | fn g2<F>(_: F) where F: Fn(&(), fn(&())) {}
135135 | ^^^^^^^^^^^^^^^^ required by this bound in `g2`
136- help: consider borrowing the argument
136+ help: consider adjusting the signature so it borrows its argument
137137 |
138138LL | g2(|_: &(), _: ()| {});
139139 | +
@@ -153,7 +153,7 @@ note: required by a bound in `g3`
153153 |
154154LL | fn g3<F>(_: F) where F: for<'s> Fn(&'s (), Box<dyn Fn(&())>) {}
155155 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `g3`
156- help: consider borrowing the argument
156+ help: consider adjusting the signature so it borrows its argument
157157 |
158158LL | g3(|_: &(), _: ()| {});
159159 | +
@@ -173,7 +173,7 @@ note: required by a bound in `g4`
173173 |
174174LL | fn g4<F>(_: F) where F: Fn(&(), for<'r> fn(&'r ())) {}
175175 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `g4`
176- help: consider borrowing the argument
176+ help: consider adjusting the signature so it borrows its argument
177177 |
178178LL | g4(|_: &(), _: ()| {});
179179 | +
@@ -193,7 +193,7 @@ note: required by a bound in `h1`
193193 |
194194LL | fn h1<F>(_: F) where F: Fn(&(), Box<dyn Fn(&())>, &(), fn(&(), &())) {}
195195 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `h1`
196- help: consider borrowing the argument
196+ help: consider adjusting the signature so it borrows its arguments
197197 |
198198LL | h1(|_: &(), _: (), _: &(), _: ()| {});
199199 | + +
@@ -213,7 +213,7 @@ note: required by a bound in `h2`
213213 |
214214LL | fn h2<F>(_: F) where F: for<'t0> Fn(&(), Box<dyn Fn(&())>, &'t0 (), fn(&(), &())) {}
215215 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `h2`
216- help: consider borrowing the argument
216+ help: consider adjusting the signature so it borrows its arguments
217217 |
218218LL | h2(|_: &(), _: (), _: &(), _: ()| {});
219219 | + +
0 commit comments