]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/issue-53773.stderr
Rollup merge of #105216 - GuillaumeGomez:rm-unused-gui-test, r=notriddle
[rust.git] / src / test / ui / nll / issue-53773.stderr
1 error[E0713]: borrow may still be in use when destructor runs
2   --> $DIR/issue-53773.rs:41:22
3    |
4 LL |         members.push(child.raw);
5    |         -------------^^^^^^^^^- borrow later used here
6 LL |
7 LL |     }
8    |     - here, drop of `child` needs exclusive access to `*child.raw`, because the type `C<'_>` implements the `Drop` trait
9    |
10    = note: consider using a `let` binding to create a longer lived value
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0713`.