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