@@ -13,7 +13,7 @@ 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 the argument
16
+ help: consider adjusting the signature so it borrows its arguments
17
17
|
18
18
LL | f1(|_: &(), _: &()| {});
19
19
| + +
@@ -33,7 +33,7 @@ note: required by a bound in `f2`
33
33
|
34
34
LL | fn f2<F>(_: F) where F: for<'a> Fn(&'a (), &()) {}
35
35
| ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `f2`
36
- help: consider borrowing the argument
36
+ help: consider adjusting the signature so it borrows its arguments
37
37
|
38
38
LL | f2(|_: &(), _: &()| {});
39
39
| + +
@@ -53,7 +53,7 @@ note: required by a bound in `f3`
53
53
|
54
54
LL | fn f3<'a, F>(_: F) where F: Fn(&'a (), &()) {}
55
55
| ^^^^^^^^^^^^^^^ required by this bound in `f3`
56
- help: consider borrowing the argument
56
+ help: consider adjusting the signature so it borrows its arguments
57
57
|
58
58
LL | f3(|_: &(), _: &()| {});
59
59
| + +
@@ -73,7 +73,7 @@ note: required by a bound in `f4`
73
73
|
74
74
LL | fn f4<F>(_: F) where F: for<'r> Fn(&(), &'r ()) {}
75
75
| ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `f4`
76
- help: consider borrowing the argument
76
+ help: consider adjusting the signature so it borrows its arguments
77
77
|
78
78
LL | f4(|_: &(), _: &()| {});
79
79
| + +
@@ -93,7 +93,7 @@ note: required by a bound in `f5`
93
93
|
94
94
LL | fn f5<F>(_: F) where F: for<'r> Fn(&'r (), &'r ()) {}
95
95
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `f5`
96
- help: consider borrowing the argument
96
+ help: consider adjusting the signature so it borrows its arguments
97
97
|
98
98
LL | f5(|_: &(), _: &()| {});
99
99
| + +
@@ -113,7 +113,7 @@ note: required by a bound in `g1`
113
113
|
114
114
LL | fn g1<F>(_: F) where F: Fn(&(), Box<dyn Fn(&())>) {}
115
115
| ^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `g1`
116
- help: consider borrowing the argument
116
+ help: consider adjusting the signature so it borrows its argument
117
117
|
118
118
LL | g1(|_: &(), _: ()| {});
119
119
| +
@@ -133,7 +133,7 @@ note: required by a bound in `g2`
133
133
|
134
134
LL | fn g2<F>(_: F) where F: Fn(&(), fn(&())) {}
135
135
| ^^^^^^^^^^^^^^^^ required by this bound in `g2`
136
- help: consider borrowing the argument
136
+ help: consider adjusting the signature so it borrows its argument
137
137
|
138
138
LL | g2(|_: &(), _: ()| {});
139
139
| +
@@ -153,7 +153,7 @@ note: required by a bound in `g3`
153
153
|
154
154
LL | fn g3<F>(_: F) where F: for<'s> Fn(&'s (), Box<dyn Fn(&())>) {}
155
155
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `g3`
156
- help: consider borrowing the argument
156
+ help: consider adjusting the signature so it borrows its argument
157
157
|
158
158
LL | g3(|_: &(), _: ()| {});
159
159
| +
@@ -173,7 +173,7 @@ note: required by a bound in `g4`
173
173
|
174
174
LL | fn g4<F>(_: F) where F: Fn(&(), for<'r> fn(&'r ())) {}
175
175
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `g4`
176
- help: consider borrowing the argument
176
+ help: consider adjusting the signature so it borrows its argument
177
177
|
178
178
LL | g4(|_: &(), _: ()| {});
179
179
| +
@@ -193,7 +193,7 @@ note: required by a bound in `h1`
193
193
|
194
194
LL | fn h1<F>(_: F) where F: Fn(&(), Box<dyn Fn(&())>, &(), fn(&(), &())) {}
195
195
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `h1`
196
- help: consider borrowing the argument
196
+ help: consider adjusting the signature so it borrows its arguments
197
197
|
198
198
LL | h1(|_: &(), _: (), _: &(), _: ()| {});
199
199
| + +
@@ -213,7 +213,7 @@ note: required by a bound in `h2`
213
213
|
214
214
LL | fn h2<F>(_: F) where F: for<'t0> Fn(&(), Box<dyn Fn(&())>, &'t0 (), fn(&(), &())) {}
215
215
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `h2`
216
- help: consider borrowing the argument
216
+ help: consider adjusting the signature so it borrows its arguments
217
217
|
218
218
LL | h2(|_: &(), _: (), _: &(), _: ()| {});
219
219
| + +
0 commit comments