blob: 0cd191e2c98c5a3c9c40db94615b81de1d461b9f [file] [log] [blame]
error: drop order affected for closure because of `capture_disjoint_fields`
--> $DIR/precise.rs:19:13
|
LL | let c = || {
| _____________^
LL | |
LL | |
LL | | let _t = t.0;
LL | | let _t = &t.1;
LL | | };
| |_____^
|
note: the lint level is defined here
--> $DIR/precise.rs:3:9
|
LL | #![deny(disjoint_capture_migration)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
help: add a dummy let to cause `t` to be fully captured
|
LL | let c = || { let _ = &t;
LL |
LL |
LL | let _t = t.0;
LL | let _t = &t.1;
LL | };
|
error: drop order affected for closure because of `capture_disjoint_fields`
--> $DIR/precise.rs:42:13
|
LL | let c = || {
| _____________^
LL | |
LL | |
LL | | let _x = u.0.0;
LL | | let _x = u.0.1;
LL | | let _x = u.1.0;
LL | | };
| |_____^
|
help: add a dummy let to cause `u` to be fully captured
|
LL | let c = || { let _ = &u;
LL |
LL |
LL | let _x = u.0.0;
LL | let _x = u.0.1;
LL | let _x = u.1.0;
...
error: aborting due to 2 previous errors