]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/issue28498-reject-ex1.stderr
Auto merge of #98051 - davidtwco:split-dwarf-stabilization, r=wesleywiser
[rust.git] / src / test / ui / span / issue28498-reject-ex1.stderr
1 error[E0713]: borrow may still be in use when destructor runs
2   --> $DIR/issue28498-reject-ex1.rs:34:29
3    |
4 LL |     foo.data[0].1.set(Some(&foo.data[1]));
5    |                             ^^^^^^^^
6 ...
7 LL | }
8    | -
9    | |
10    | here, drop of `foo` needs exclusive access to `foo.data`, because the type `Foo<Concrete<'_>>` implements the `Drop` trait
11    | borrow might be used here, when `foo` is dropped and runs the `Drop` code for type `Foo`
12    |
13    = note: consider using a `let` binding to create a longer lived value
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0713`.