@@ -13,11 +13,11 @@ note: required by a bound in `f1`
13
13
|
14
14
LL | fn f1<F>(_: F) where F: Fn(&(), &()) {}
15
15
| ^^^^^^^^^^^^ required by this bound in `f1`
16
- help: consider borrowing here:
16
+ help: consider borrowing the argument
17
17
|
18
18
LL | f1(|_: &(), _: ()| {});
19
19
| ~~~
20
- help: consider borrowing here:
20
+ help: consider borrowing the argument
21
21
|
22
22
LL | f1(|_: (), _: &()| {});
23
23
| ~~~
@@ -37,11 +37,11 @@ note: required by a bound in `f2`
37
37
|
38
38
LL | fn f2<F>(_: F) where F: for<'a> Fn(&'a (), &()) {}
39
39
| ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `f2`
40
- help: consider borrowing here:
40
+ help: consider borrowing the argument
41
41
|
42
42
LL | f2(|_: &'a (), _: ()| {});
43
43
| ~~~~~~
44
- help: consider borrowing here:
44
+ help: consider borrowing the argument
45
45
|
46
46
LL | f2(|_: (), _: &()| {});
47
47
| ~~~
@@ -61,11 +61,11 @@ note: required by a bound in `f3`
61
61
|
62
62
LL | fn f3<'a, F>(_: F) where F: Fn(&'a (), &()) {}
63
63
| ^^^^^^^^^^^^^^^ required by this bound in `f3`
64
- help: consider borrowing here:
64
+ help: consider borrowing the argument
65
65
|
66
66
LL | f3(|_: &(), _: ()| {});
67
67
| ~~~
68
- help: consider borrowing here:
68
+ help: consider borrowing the argument
69
69
|
70
70
LL | f3(|_: (), _: &()| {});
71
71
| ~~~
@@ -85,11 +85,11 @@ note: required by a bound in `f4`
85
85
|
86
86
LL | fn f4<F>(_: F) where F: for<'r> Fn(&(), &'r ()) {}
87
87
| ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `f4`
88
- help: consider borrowing here:
88
+ help: consider borrowing the argument
89
89
|
90
90
LL | f4(|_: &(), _: ()| {});
91
91
| ~~~
92
- help: consider borrowing here:
92
+ help: consider borrowing the argument
93
93
|
94
94
LL | f4(|_: (), _: &'r ()| {});
95
95
| ~~~~~~
@@ -109,11 +109,11 @@ note: required by a bound in `f5`
109
109
|
110
110
LL | fn f5<F>(_: F) where F: for<'r> Fn(&'r (), &'r ()) {}
111
111
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `f5`
112
- help: consider borrowing here:
112
+ help: consider borrowing the argument
113
113
|
114
114
LL | f5(|_: &'r (), _: ()| {});
115
115
| ~~~~~~
116
- help: consider borrowing here:
116
+ help: consider borrowing the argument
117
117
|
118
118
LL | f5(|_: (), _: &'r ()| {});
119
119
| ~~~~~~
@@ -133,7 +133,7 @@ note: required by a bound in `g1`
133
133
|
134
134
LL | fn g1<F>(_: F) where F: Fn(&(), Box<dyn Fn(&())>) {}
135
135
| ^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `g1`
136
- help: consider borrowing here:
136
+ help: consider borrowing the argument
137
137
|
138
138
LL | g1(|_: &(), _: ()| {});
139
139
| ~~~
@@ -153,7 +153,7 @@ note: required by a bound in `g2`
153
153
|
154
154
LL | fn g2<F>(_: F) where F: Fn(&(), fn(&())) {}
155
155
| ^^^^^^^^^^^^^^^^ required by this bound in `g2`
156
- help: consider borrowing here:
156
+ help: consider borrowing the argument
157
157
|
158
158
LL | g2(|_: &(), _: ()| {});
159
159
| ~~~
@@ -173,7 +173,7 @@ note: required by a bound in `g3`
173
173
|
174
174
LL | fn g3<F>(_: F) where F: for<'s> Fn(&'s (), Box<dyn Fn(&())>) {}
175
175
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `g3`
176
- help: consider borrowing here:
176
+ help: consider borrowing the argument
177
177
|
178
178
LL | g3(|_: &'s (), _: ()| {});
179
179
| ~~~~~~
@@ -193,7 +193,7 @@ note: required by a bound in `g4`
193
193
|
194
194
LL | fn g4<F>(_: F) where F: Fn(&(), for<'r> fn(&'r ())) {}
195
195
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `g4`
196
- help: consider borrowing here:
196
+ help: consider borrowing the argument
197
197
|
198
198
LL | g4(|_: &(), _: ()| {});
199
199
| ~~~
@@ -213,11 +213,11 @@ note: required by a bound in `h1`
213
213
|
214
214
LL | fn h1<F>(_: F) where F: Fn(&(), Box<dyn Fn(&())>, &(), fn(&(), &())) {}
215
215
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `h1`
216
- help: consider borrowing here:
216
+ help: consider borrowing the argument
217
217
|
218
218
LL | h1(|_: &(), _: (), _: (), _: ()| {});
219
219
| ~~~
220
- help: consider borrowing here:
220
+ help: consider borrowing the argument
221
221
|
222
222
LL | h1(|_: (), _: (), _: &(), _: ()| {});
223
223
| ~~~
@@ -237,11 +237,11 @@ note: required by a bound in `h2`
237
237
|
238
238
LL | fn h2<F>(_: F) where F: for<'t0> Fn(&(), Box<dyn Fn(&())>, &'t0 (), fn(&(), &())) {}
239
239
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `h2`
240
- help: consider borrowing here:
240
+ help: consider borrowing the argument
241
241
|
242
242
LL | h2(|_: &(), _: (), _: (), _: ()| {});
243
243
| ~~~
244
- help: consider borrowing here:
244
+ help: consider borrowing the argument
245
245
|
246
246
LL | h2(|_: (), _: (), _: &'t0 (), _: ()| {});
247
247
| ~~~~~~~
0 commit comments