error[E0597]: `arena` does not live long enough
- --> $DIR/dropck-tarena-cycle-checked.rs:116:8
+ --> $DIR/dropck-tarena-cycle-checked.rs:116:7
|
LL | f(&arena);
- | ^^^^^ borrowed value does not live long enough
+ | ^^^^^^ borrowed value does not live long enough
LL | }
- | - `arena` dropped here while still borrowed
- |
- = note: values in a scope are dropped in the opposite order they are created
+ | -
+ | |
+ | `arena` dropped here while still borrowed
+ | borrow might be used here, when `arena` is dropped and runs the `Drop` code for type `arena::TypedArena`
error: aborting due to previous error