]>
Commit | Line | Data |
---|---|---|
cdc7bbd5 XL |
1 | error: drop order affected for closure because of `capture_disjoint_fields` |
2 | --> $DIR/migrations_rustfix.rs:19:13 | |
3 | | | |
4 | LL | let c = || { | |
5 | | _____________^ | |
6 | LL | | | |
7 | LL | | | |
8 | LL | | let _t = t.0; | |
9 | LL | | }; | |
10 | | |_____^ | |
11 | | | |
12 | note: the lint level is defined here | |
13 | --> $DIR/migrations_rustfix.rs:2:9 | |
14 | | | |
17df50a5 XL |
15 | LL | #![deny(disjoint_capture_migration)] |
16 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
cdc7bbd5 XL |
17 | help: add a dummy let to cause `t` to be fully captured |
18 | | | |
19 | LL | let c = || { let _ = &t; | |
20 | LL | | |
21 | LL | | |
22 | LL | let _t = t.0; | |
23 | LL | }; | |
24 | | | |
25 | ||
26 | error: drop order affected for closure because of `capture_disjoint_fields` | |
27 | --> $DIR/migrations_rustfix.rs:30:13 | |
28 | | | |
29 | LL | let c = || t.0; | |
30 | | ^^^^^^ | |
31 | | | |
32 | help: add a dummy let to cause `t` to be fully captured | |
33 | | | |
34 | LL | let c = || { let _ = &t; t.0 }; | |
35 | | ^^^^^^^^^^^^^^^^^^^ | |
36 | ||
37 | error: aborting due to 2 previous errors | |
38 |