A value goes out of scope while it is still referenced by another variable. The borrow outlives the value's lifetime, which would produce a dangling reference.
E0597
rust A value goes out of scope while it is still referenced by another variable. The borrow outlives the value's lifetime, which would produce a dangling reference.