@@ -13,11 +13,11 @@ 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 here:
16+ help: consider borrowing the argument
1717 |
1818LL | f1(|_: &(), _: ()| {});
1919 | ~~~
20- help: consider borrowing here:
20+ help: consider borrowing the argument
2121 |
2222LL | f1(|_: (), _: &()| {});
2323 | ~~~
@@ -37,11 +37,11 @@ note: required by a bound in `f2`
3737 |
3838LL | fn f2<F>(_: F) where F: for<'a> Fn(&'a (), &()) {}
3939 | ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `f2`
40- help: consider borrowing here:
40+ help: consider borrowing the argument
4141 |
4242LL | f2(|_: &'a (), _: ()| {});
4343 | ~~~~~~
44- help: consider borrowing here:
44+ help: consider borrowing the argument
4545 |
4646LL | f2(|_: (), _: &()| {});
4747 | ~~~
@@ -61,11 +61,11 @@ note: required by a bound in `f3`
6161 |
6262LL | fn f3<'a, F>(_: F) where F: Fn(&'a (), &()) {}
6363 | ^^^^^^^^^^^^^^^ required by this bound in `f3`
64- help: consider borrowing here:
64+ help: consider borrowing the argument
6565 |
6666LL | f3(|_: &(), _: ()| {});
6767 | ~~~
68- help: consider borrowing here:
68+ help: consider borrowing the argument
6969 |
7070LL | f3(|_: (), _: &()| {});
7171 | ~~~
@@ -85,11 +85,11 @@ note: required by a bound in `f4`
8585 |
8686LL | fn f4<F>(_: F) where F: for<'r> Fn(&(), &'r ()) {}
8787 | ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `f4`
88- help: consider borrowing here:
88+ help: consider borrowing the argument
8989 |
9090LL | f4(|_: &(), _: ()| {});
9191 | ~~~
92- help: consider borrowing here:
92+ help: consider borrowing the argument
9393 |
9494LL | f4(|_: (), _: &'r ()| {});
9595 | ~~~~~~
@@ -109,11 +109,11 @@ note: required by a bound in `f5`
109109 |
110110LL | fn f5<F>(_: F) where F: for<'r> Fn(&'r (), &'r ()) {}
111111 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `f5`
112- help: consider borrowing here:
112+ help: consider borrowing the argument
113113 |
114114LL | f5(|_: &'r (), _: ()| {});
115115 | ~~~~~~
116- help: consider borrowing here:
116+ help: consider borrowing the argument
117117 |
118118LL | f5(|_: (), _: &'r ()| {});
119119 | ~~~~~~
@@ -133,7 +133,7 @@ note: required by a bound in `g1`
133133 |
134134LL | fn g1<F>(_: F) where F: Fn(&(), Box<dyn Fn(&())>) {}
135135 | ^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `g1`
136- help: consider borrowing here:
136+ help: consider borrowing the argument
137137 |
138138LL | g1(|_: &(), _: ()| {});
139139 | ~~~
@@ -153,7 +153,7 @@ note: required by a bound in `g2`
153153 |
154154LL | fn g2<F>(_: F) where F: Fn(&(), fn(&())) {}
155155 | ^^^^^^^^^^^^^^^^ required by this bound in `g2`
156- help: consider borrowing here:
156+ help: consider borrowing the argument
157157 |
158158LL | g2(|_: &(), _: ()| {});
159159 | ~~~
@@ -173,7 +173,7 @@ note: required by a bound in `g3`
173173 |
174174LL | fn g3<F>(_: F) where F: for<'s> Fn(&'s (), Box<dyn Fn(&())>) {}
175175 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `g3`
176- help: consider borrowing here:
176+ help: consider borrowing the argument
177177 |
178178LL | g3(|_: &'s (), _: ()| {});
179179 | ~~~~~~
@@ -193,7 +193,7 @@ note: required by a bound in `g4`
193193 |
194194LL | fn g4<F>(_: F) where F: Fn(&(), for<'r> fn(&'r ())) {}
195195 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `g4`
196- help: consider borrowing here:
196+ help: consider borrowing the argument
197197 |
198198LL | g4(|_: &(), _: ()| {});
199199 | ~~~
@@ -213,11 +213,11 @@ note: required by a bound in `h1`
213213 |
214214LL | fn h1<F>(_: F) where F: Fn(&(), Box<dyn Fn(&())>, &(), fn(&(), &())) {}
215215 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `h1`
216- help: consider borrowing here:
216+ help: consider borrowing the argument
217217 |
218218LL | h1(|_: &(), _: (), _: (), _: ()| {});
219219 | ~~~
220- help: consider borrowing here:
220+ help: consider borrowing the argument
221221 |
222222LL | h1(|_: (), _: (), _: &(), _: ()| {});
223223 | ~~~
@@ -237,11 +237,11 @@ note: required by a bound in `h2`
237237 |
238238LL | fn h2<F>(_: F) where F: for<'t0> Fn(&(), Box<dyn Fn(&())>, &'t0 (), fn(&(), &())) {}
239239 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `h2`
240- help: consider borrowing here:
240+ help: consider borrowing the argument
241241 |
242242LL | h2(|_: &(), _: (), _: (), _: ()| {});
243243 | ~~~
244- help: consider borrowing here:
244+ help: consider borrowing the argument
245245 |
246246LL | h2(|_: (), _: (), _: &'t0 (), _: ()| {});
247247 | ~~~~~~~
0 commit comments