1 error: changes to closure capture in Rust 2021 will affect drop order
2 --> $DIR/migrations_rustfix.rs:19:13
8 | --- in Rust 2018, closure captures all of `t`, but in Rust 2021, it only captures `t.0`
11 | - in Rust 2018, `t` would be dropped here, but in Rust 2021, only `t.0` would be dropped here alongside the closure
13 note: the lint level is defined here
14 --> $DIR/migrations_rustfix.rs:2:9
16 LL | #![deny(rust_2021_incompatible_closure_captures)]
17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/disjoint-capture-in-closures.html>
19 help: add a dummy let to cause `t` to be fully captured
21 LL | let c = || { let _ = &t;
29 error: changes to closure capture in Rust 2021 will affect drop order
30 --> $DIR/migrations_rustfix.rs:33:13
35 | in Rust 2018, closure captures all of `t`, but in Rust 2021, it only captures `t.0`
38 | - in Rust 2018, `t` would be dropped here, but in Rust 2021, only `t.0` would be dropped here alongside the closure
40 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/disjoint-capture-in-closures.html>
41 help: add a dummy let to cause `t` to be fully captured
43 LL | let c = || { let _ = &t; t.0 };
46 error: aborting due to 2 previous errors