@@ -16,7 +16,7 @@ help: `Fn` and `FnMut` closures require captured values to be able to be consume
16
16
--> $DIR/move-into-closure.rs:13:18
17
17
|
18
18
LL | fn consume_fn<F: Fn()>(_f: F) { }
19
- | ^^^^
19
+ | ^^^^ consider changing this bound to be `FnOnce`
20
20
help: consider borrowing here
21
21
|
22
22
LL | let X(_t) = &x;
@@ -41,7 +41,7 @@ help: `Fn` and `FnMut` closures require captured values to be able to be consume
41
41
--> $DIR/move-into-closure.rs:13:18
42
42
|
43
43
LL | fn consume_fn<F: Fn()>(_f: F) { }
44
- | ^^^^
44
+ | ^^^^ consider changing this bound to be `FnOnce`
45
45
help: consider borrowing here
46
46
|
47
47
LL | if let Either::One(_t) = &e { }
@@ -66,7 +66,7 @@ help: `Fn` and `FnMut` closures require captured values to be able to be consume
66
66
--> $DIR/move-into-closure.rs:13:18
67
67
|
68
68
LL | fn consume_fn<F: Fn()>(_f: F) { }
69
- | ^^^^
69
+ | ^^^^ consider changing this bound to be `FnOnce`
70
70
help: consider borrowing here
71
71
|
72
72
LL | while let Either::One(_t) = &e { }
@@ -94,7 +94,7 @@ help: `Fn` and `FnMut` closures require captured values to be able to be consume
94
94
--> $DIR/move-into-closure.rs:13:18
95
95
|
96
96
LL | fn consume_fn<F: Fn()>(_f: F) { }
97
- | ^^^^
97
+ | ^^^^ consider changing this bound to be `FnOnce`
98
98
help: consider borrowing here
99
99
|
100
100
LL | match &e {
@@ -122,7 +122,7 @@ help: `Fn` and `FnMut` closures require captured values to be able to be consume
122
122
--> $DIR/move-into-closure.rs:13:18
123
123
|
124
124
LL | fn consume_fn<F: Fn()>(_f: F) { }
125
- | ^^^^
125
+ | ^^^^ consider changing this bound to be `FnOnce`
126
126
help: consider borrowing here
127
127
|
128
128
LL | match &e {
@@ -147,7 +147,7 @@ help: `Fn` and `FnMut` closures require captured values to be able to be consume
147
147
--> $DIR/move-into-closure.rs:13:18
148
148
|
149
149
LL | fn consume_fn<F: Fn()>(_f: F) { }
150
- | ^^^^
150
+ | ^^^^ consider changing this bound to be `FnOnce`
151
151
help: consider borrowing here
152
152
|
153
153
LL | let X(mut _t) = &x;
@@ -172,7 +172,7 @@ help: `Fn` and `FnMut` closures require captured values to be able to be consume
172
172
--> $DIR/move-into-closure.rs:13:18
173
173
|
174
174
LL | fn consume_fn<F: Fn()>(_f: F) { }
175
- | ^^^^
175
+ | ^^^^ consider changing this bound to be `FnOnce`
176
176
help: consider borrowing here
177
177
|
178
178
LL | if let Either::One(mut _t) = &em { }
@@ -197,7 +197,7 @@ help: `Fn` and `FnMut` closures require captured values to be able to be consume
197
197
--> $DIR/move-into-closure.rs:13:18
198
198
|
199
199
LL | fn consume_fn<F: Fn()>(_f: F) { }
200
- | ^^^^
200
+ | ^^^^ consider changing this bound to be `FnOnce`
201
201
help: consider borrowing here
202
202
|
203
203
LL | while let Either::One(mut _t) = &em { }
@@ -225,7 +225,7 @@ help: `Fn` and `FnMut` closures require captured values to be able to be consume
225
225
--> $DIR/move-into-closure.rs:13:18
226
226
|
227
227
LL | fn consume_fn<F: Fn()>(_f: F) { }
228
- | ^^^^
228
+ | ^^^^ consider changing this bound to be `FnOnce`
229
229
help: consider borrowing here
230
230
|
231
231
LL | match &em {
@@ -253,7 +253,7 @@ help: `Fn` and `FnMut` closures require captured values to be able to be consume
253
253
--> $DIR/move-into-closure.rs:13:18
254
254
|
255
255
LL | fn consume_fn<F: Fn()>(_f: F) { }
256
- | ^^^^
256
+ | ^^^^ consider changing this bound to be `FnOnce`
257
257
help: consider borrowing here
258
258
|
259
259
LL | match &em {
@@ -277,7 +277,7 @@ help: `Fn` and `FnMut` closures require captured values to be able to be consume
277
277
--> $DIR/move-into-closure.rs:25:21
278
278
|
279
279
LL | fn consume_fnmut<F: FnMut()>(_f: F) { }
280
- | ^^^^^^^
280
+ | ^^^^^^^ consider changing this bound to be `FnOnce`
281
281
help: consider borrowing here
282
282
|
283
283
LL | let X(_t) = &x;
@@ -302,7 +302,7 @@ help: `Fn` and `FnMut` closures require captured values to be able to be consume
302
302
--> $DIR/move-into-closure.rs:25:21
303
303
|
304
304
LL | fn consume_fnmut<F: FnMut()>(_f: F) { }
305
- | ^^^^^^^
305
+ | ^^^^^^^ consider changing this bound to be `FnOnce`
306
306
help: consider borrowing here
307
307
|
308
308
LL | if let Either::One(_t) = &e { }
@@ -327,7 +327,7 @@ help: `Fn` and `FnMut` closures require captured values to be able to be consume
327
327
--> $DIR/move-into-closure.rs:25:21
328
328
|
329
329
LL | fn consume_fnmut<F: FnMut()>(_f: F) { }
330
- | ^^^^^^^
330
+ | ^^^^^^^ consider changing this bound to be `FnOnce`
331
331
help: consider borrowing here
332
332
|
333
333
LL | while let Either::One(_t) = &e { }
@@ -355,7 +355,7 @@ help: `Fn` and `FnMut` closures require captured values to be able to be consume
355
355
--> $DIR/move-into-closure.rs:25:21
356
356
|
357
357
LL | fn consume_fnmut<F: FnMut()>(_f: F) { }
358
- | ^^^^^^^
358
+ | ^^^^^^^ consider changing this bound to be `FnOnce`
359
359
help: consider borrowing here
360
360
|
361
361
LL | match &e {
@@ -383,7 +383,7 @@ help: `Fn` and `FnMut` closures require captured values to be able to be consume
383
383
--> $DIR/move-into-closure.rs:25:21
384
384
|
385
385
LL | fn consume_fnmut<F: FnMut()>(_f: F) { }
386
- | ^^^^^^^
386
+ | ^^^^^^^ consider changing this bound to be `FnOnce`
387
387
help: consider borrowing here
388
388
|
389
389
LL | match &e {
@@ -408,7 +408,7 @@ help: `Fn` and `FnMut` closures require captured values to be able to be consume
408
408
--> $DIR/move-into-closure.rs:25:21
409
409
|
410
410
LL | fn consume_fnmut<F: FnMut()>(_f: F) { }
411
- | ^^^^^^^
411
+ | ^^^^^^^ consider changing this bound to be `FnOnce`
412
412
help: consider borrowing here
413
413
|
414
414
LL | let X(mut _t) = &x;
@@ -433,7 +433,7 @@ help: `Fn` and `FnMut` closures require captured values to be able to be consume
433
433
--> $DIR/move-into-closure.rs:25:21
434
434
|
435
435
LL | fn consume_fnmut<F: FnMut()>(_f: F) { }
436
- | ^^^^^^^
436
+ | ^^^^^^^ consider changing this bound to be `FnOnce`
437
437
help: consider borrowing here
438
438
|
439
439
LL | if let Either::One(mut _t) = &em { }
@@ -458,7 +458,7 @@ help: `Fn` and `FnMut` closures require captured values to be able to be consume
458
458
--> $DIR/move-into-closure.rs:25:21
459
459
|
460
460
LL | fn consume_fnmut<F: FnMut()>(_f: F) { }
461
- | ^^^^^^^
461
+ | ^^^^^^^ consider changing this bound to be `FnOnce`
462
462
help: consider borrowing here
463
463
|
464
464
LL | while let Either::One(mut _t) = &em { }
@@ -486,7 +486,7 @@ help: `Fn` and `FnMut` closures require captured values to be able to be consume
486
486
--> $DIR/move-into-closure.rs:25:21
487
487
|
488
488
LL | fn consume_fnmut<F: FnMut()>(_f: F) { }
489
- | ^^^^^^^
489
+ | ^^^^^^^ consider changing this bound to be `FnOnce`
490
490
help: consider borrowing here
491
491
|
492
492
LL | match &em {
@@ -514,7 +514,7 @@ help: `Fn` and `FnMut` closures require captured values to be able to be consume
514
514
--> $DIR/move-into-closure.rs:25:21
515
515
|
516
516
LL | fn consume_fnmut<F: FnMut()>(_f: F) { }
517
- | ^^^^^^^
517
+ | ^^^^^^^ consider changing this bound to be `FnOnce`
518
518
help: consider borrowing here
519
519
|
520
520
LL | match &em {
@@ -542,7 +542,7 @@ help: `Fn` and `FnMut` closures require captured values to be able to be consume
542
542
--> $DIR/move-into-closure.rs:25:21
543
543
|
544
544
LL | fn consume_fnmut<F: FnMut()>(_f: F) { }
545
- | ^^^^^^^
545
+ | ^^^^^^^ consider changing this bound to be `FnOnce`
546
546
help: consider borrowing here
547
547
|
548
548
LL | match &em {
0 commit comments