diff --git a/src/lifetimes.md b/src/lifetimes.md index bc917b1..649cd77 100644 --- a/src/lifetimes.md +++ b/src/lifetimes.md @@ -261,6 +261,8 @@ data.push(4); // Here, the destructor is run and therefore this'll fail to compile. ``` +One way to convince the compiler that `x` is no longer valid is by using `drop(x)` before `data.push(4)`. + Furthermore, there might be multiple possible last uses of the borrow, for example in each branch of a condition.