]> git.proxmox.com Git - rustc.git/blame - src/test/ui/closures/2229_closure_analysis/migrations/precise.stderr
New upstream version 1.53.0+dfsg1
[rustc.git] / src / test / ui / closures / 2229_closure_analysis / migrations / precise.stderr
CommitLineData
6a06907d 1error: drop order affected for closure because of `capture_disjoint_fields`
cdc7bbd5 2 --> $DIR/precise.rs:19:13
6a06907d
XL
3 |
4LL | let c = || {
5 | _____________^
6LL | |
7LL | |
8LL | | let _t = t.0;
cdc7bbd5 9LL | | let _t = &t.1;
6a06907d
XL
10LL | | };
11 | |_____^
12 |
13note: the lint level is defined here
cdc7bbd5 14 --> $DIR/precise.rs:3:9
6a06907d
XL
15 |
16LL | #![deny(disjoint_capture_drop_reorder)]
17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cdc7bbd5 18help: add a dummy let to cause `t` to be fully captured
6a06907d 19 |
cdc7bbd5
XL
20LL | let c = || { let _ = &t;
21LL |
22LL |
23LL | let _t = t.0;
24LL | let _t = &t.1;
25LL | };
6a06907d 26 |
6a06907d
XL
27
28error: drop order affected for closure because of `capture_disjoint_fields`
cdc7bbd5 29 --> $DIR/precise.rs:42:13
6a06907d
XL
30 |
31LL | let c = || {
32 | _____________^
33LL | |
34LL | |
35LL | | let _x = u.0.0;
36LL | | let _x = u.0.1;
37LL | | let _x = u.1.0;
38LL | | };
39 | |_____^
40 |
cdc7bbd5
XL
41help: add a dummy let to cause `u` to be fully captured
42 |
43LL | let c = || { let _ = &u;
44LL |
45LL |
46LL | let _x = u.0.0;
47LL | let _x = u.0.1;
48LL | let _x = u.1.0;
49 ...
6a06907d 50
cdc7bbd5 51error: aborting due to 2 previous errors
6a06907d 52