@@ -16,7 +16,7 @@ help: `Fn` and `FnMut` closures require captured values to be able to be consume
1616 --> $DIR/move-into-closure.rs:13:18
1717 |
1818LL | fn consume_fn<F: Fn()>(_f: F) { }
19- | ^^^^
19+ | ^^^^ consider changing this bound to be `FnOnce`
2020help: consider borrowing here
2121 |
2222LL | let X(_t) = &x;
@@ -41,7 +41,7 @@ help: `Fn` and `FnMut` closures require captured values to be able to be consume
4141 --> $DIR/move-into-closure.rs:13:18
4242 |
4343LL | fn consume_fn<F: Fn()>(_f: F) { }
44- | ^^^^
44+ | ^^^^ consider changing this bound to be `FnOnce`
4545help: consider borrowing here
4646 |
4747LL | if let Either::One(_t) = &e { }
@@ -66,7 +66,7 @@ help: `Fn` and `FnMut` closures require captured values to be able to be consume
6666 --> $DIR/move-into-closure.rs:13:18
6767 |
6868LL | fn consume_fn<F: Fn()>(_f: F) { }
69- | ^^^^
69+ | ^^^^ consider changing this bound to be `FnOnce`
7070help: consider borrowing here
7171 |
7272LL | while let Either::One(_t) = &e { }
@@ -94,7 +94,7 @@ help: `Fn` and `FnMut` closures require captured values to be able to be consume
9494 --> $DIR/move-into-closure.rs:13:18
9595 |
9696LL | fn consume_fn<F: Fn()>(_f: F) { }
97- | ^^^^
97+ | ^^^^ consider changing this bound to be `FnOnce`
9898help: consider borrowing here
9999 |
100100LL | match &e {
@@ -122,7 +122,7 @@ help: `Fn` and `FnMut` closures require captured values to be able to be consume
122122 --> $DIR/move-into-closure.rs:13:18
123123 |
124124LL | fn consume_fn<F: Fn()>(_f: F) { }
125- | ^^^^
125+ | ^^^^ consider changing this bound to be `FnOnce`
126126help: consider borrowing here
127127 |
128128LL | match &e {
@@ -147,7 +147,7 @@ help: `Fn` and `FnMut` closures require captured values to be able to be consume
147147 --> $DIR/move-into-closure.rs:13:18
148148 |
149149LL | fn consume_fn<F: Fn()>(_f: F) { }
150- | ^^^^
150+ | ^^^^ consider changing this bound to be `FnOnce`
151151help: consider borrowing here
152152 |
153153LL | let X(mut _t) = &x;
@@ -172,7 +172,7 @@ help: `Fn` and `FnMut` closures require captured values to be able to be consume
172172 --> $DIR/move-into-closure.rs:13:18
173173 |
174174LL | fn consume_fn<F: Fn()>(_f: F) { }
175- | ^^^^
175+ | ^^^^ consider changing this bound to be `FnOnce`
176176help: consider borrowing here
177177 |
178178LL | 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
197197 --> $DIR/move-into-closure.rs:13:18
198198 |
199199LL | fn consume_fn<F: Fn()>(_f: F) { }
200- | ^^^^
200+ | ^^^^ consider changing this bound to be `FnOnce`
201201help: consider borrowing here
202202 |
203203LL | 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
225225 --> $DIR/move-into-closure.rs:13:18
226226 |
227227LL | fn consume_fn<F: Fn()>(_f: F) { }
228- | ^^^^
228+ | ^^^^ consider changing this bound to be `FnOnce`
229229help: consider borrowing here
230230 |
231231LL | match &em {
@@ -253,7 +253,7 @@ help: `Fn` and `FnMut` closures require captured values to be able to be consume
253253 --> $DIR/move-into-closure.rs:13:18
254254 |
255255LL | fn consume_fn<F: Fn()>(_f: F) { }
256- | ^^^^
256+ | ^^^^ consider changing this bound to be `FnOnce`
257257help: consider borrowing here
258258 |
259259LL | match &em {
@@ -277,7 +277,7 @@ help: `Fn` and `FnMut` closures require captured values to be able to be consume
277277 --> $DIR/move-into-closure.rs:25:21
278278 |
279279LL | fn consume_fnmut<F: FnMut()>(_f: F) { }
280- | ^^^^^^^
280+ | ^^^^^^^ consider changing this bound to be `FnOnce`
281281help: consider borrowing here
282282 |
283283LL | let X(_t) = &x;
@@ -302,7 +302,7 @@ help: `Fn` and `FnMut` closures require captured values to be able to be consume
302302 --> $DIR/move-into-closure.rs:25:21
303303 |
304304LL | fn consume_fnmut<F: FnMut()>(_f: F) { }
305- | ^^^^^^^
305+ | ^^^^^^^ consider changing this bound to be `FnOnce`
306306help: consider borrowing here
307307 |
308308LL | if let Either::One(_t) = &e { }
@@ -327,7 +327,7 @@ help: `Fn` and `FnMut` closures require captured values to be able to be consume
327327 --> $DIR/move-into-closure.rs:25:21
328328 |
329329LL | fn consume_fnmut<F: FnMut()>(_f: F) { }
330- | ^^^^^^^
330+ | ^^^^^^^ consider changing this bound to be `FnOnce`
331331help: consider borrowing here
332332 |
333333LL | while let Either::One(_t) = &e { }
@@ -355,7 +355,7 @@ help: `Fn` and `FnMut` closures require captured values to be able to be consume
355355 --> $DIR/move-into-closure.rs:25:21
356356 |
357357LL | fn consume_fnmut<F: FnMut()>(_f: F) { }
358- | ^^^^^^^
358+ | ^^^^^^^ consider changing this bound to be `FnOnce`
359359help: consider borrowing here
360360 |
361361LL | match &e {
@@ -383,7 +383,7 @@ help: `Fn` and `FnMut` closures require captured values to be able to be consume
383383 --> $DIR/move-into-closure.rs:25:21
384384 |
385385LL | fn consume_fnmut<F: FnMut()>(_f: F) { }
386- | ^^^^^^^
386+ | ^^^^^^^ consider changing this bound to be `FnOnce`
387387help: consider borrowing here
388388 |
389389LL | match &e {
@@ -408,7 +408,7 @@ help: `Fn` and `FnMut` closures require captured values to be able to be consume
408408 --> $DIR/move-into-closure.rs:25:21
409409 |
410410LL | fn consume_fnmut<F: FnMut()>(_f: F) { }
411- | ^^^^^^^
411+ | ^^^^^^^ consider changing this bound to be `FnOnce`
412412help: consider borrowing here
413413 |
414414LL | let X(mut _t) = &x;
@@ -433,7 +433,7 @@ help: `Fn` and `FnMut` closures require captured values to be able to be consume
433433 --> $DIR/move-into-closure.rs:25:21
434434 |
435435LL | fn consume_fnmut<F: FnMut()>(_f: F) { }
436- | ^^^^^^^
436+ | ^^^^^^^ consider changing this bound to be `FnOnce`
437437help: consider borrowing here
438438 |
439439LL | 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
458458 --> $DIR/move-into-closure.rs:25:21
459459 |
460460LL | fn consume_fnmut<F: FnMut()>(_f: F) { }
461- | ^^^^^^^
461+ | ^^^^^^^ consider changing this bound to be `FnOnce`
462462help: consider borrowing here
463463 |
464464LL | 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
486486 --> $DIR/move-into-closure.rs:25:21
487487 |
488488LL | fn consume_fnmut<F: FnMut()>(_f: F) { }
489- | ^^^^^^^
489+ | ^^^^^^^ consider changing this bound to be `FnOnce`
490490help: consider borrowing here
491491 |
492492LL | match &em {
@@ -514,7 +514,7 @@ help: `Fn` and `FnMut` closures require captured values to be able to be consume
514514 --> $DIR/move-into-closure.rs:25:21
515515 |
516516LL | fn consume_fnmut<F: FnMut()>(_f: F) { }
517- | ^^^^^^^
517+ | ^^^^^^^ consider changing this bound to be `FnOnce`
518518help: consider borrowing here
519519 |
520520LL | match &em {
@@ -542,7 +542,7 @@ help: `Fn` and `FnMut` closures require captured values to be able to be consume
542542 --> $DIR/move-into-closure.rs:25:21
543543 |
544544LL | fn consume_fnmut<F: FnMut()>(_f: F) { }
545- | ^^^^^^^
545+ | ^^^^^^^ consider changing this bound to be `FnOnce`
546546help: consider borrowing here
547547 |
548548LL | match &em {
0 commit comments