]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/issue-53773.stderr
Fix erroneous loop diagnostic in nll
[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:43:22
3    |
4 LL |         members.push(child.raw);
5    |                      ^^^^^^^^^
6 LL |         //~^ ERROR borrow may still be in use when destructor runs [E0713]
7 LL |     }
8    |     - here, drop of `child` needs exclusive access to `*child.raw`, because the type `C<'_>` implements the `Drop` trait
9 LL |     members.len();
10    |     ------- borrow later used here
11    |
12    = note: consider using a `let` binding to create a longer lived value
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0713`.