1 error: drop order affected for closure because of `capture_disjoint_fields`
2 --> $DIR/significant_drop.rs:25:13
10 LL | | let _t2 = t2.0;
14 note: the lint level is defined here
15 --> $DIR/significant_drop.rs:2:9
17 LL | #![deny(disjoint_capture_migration)]
18 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
19 help: add a dummy let to cause `t`, `t1`, `t2` to be fully captured
21 LL | let c = || { let _ = (&t, &t1, &t2);
29 error: drop order affected for closure because of `capture_disjoint_fields`
30 --> $DIR/significant_drop.rs:43:13
37 LL | | let _t1 = t1.0;
42 help: add a dummy let to cause `t`, `t1` to be fully captured
44 LL | let c = || { let _ = (&t, &t1);
52 error: drop order affected for closure because of `capture_disjoint_fields`
53 --> $DIR/significant_drop.rs:59:13
60 LL | | println!("{:?}", t1.1);
64 help: add a dummy let to cause `t` to be fully captured
66 LL | let c = || { let _ = &t;
70 LL | println!("{:?}", t1.1);
74 error: drop order affected for closure because of `capture_disjoint_fields`
75 --> $DIR/significant_drop.rs:76:13
85 help: add a dummy let to cause `t` to be fully captured
87 LL | let c = || { let _ = &t;
94 error: drop order affected for closure because of `capture_disjoint_fields`
95 --> $DIR/significant_drop.rs:91:13
105 help: add a dummy let to cause `t` to be fully captured
107 LL | let c = || { let _ = &t;
114 error: drop order affected for closure because of `capture_disjoint_fields`
115 --> $DIR/significant_drop.rs:104:13
125 help: add a dummy let to cause `t` to be fully captured
127 LL | let c = || { let _ = &t;
134 error: drop order affected for closure because of `capture_disjoint_fields`
135 --> $DIR/significant_drop.rs:119:13
137 LL | let c = move || {
141 LL | | println!("{:?} {:?}", t1.1, t.1);
145 help: add a dummy let to cause `t1`, `t` to be fully captured
147 LL | let c = move || { let _ = (&t1, &t);
150 LL | println!("{:?} {:?}", t1.1, t.1);
154 error: aborting due to 7 previous errors