2018-12-02 19:42:43 +00:00
|
|
|
error[E0597]: `arena` does not live long enough
|
2019-04-22 07:40:08 +00:00
|
|
|
--> $DIR/dropck-tarena-cycle-checked.rs:116:7
|
2018-12-02 19:42:43 +00:00
|
|
|
|
|
2023-01-15 19:57:32 +00:00
|
|
|
LL | let arena = TypedArena::default();
|
|
|
|
| ----- binding `arena` declared here
|
2018-12-02 19:42:43 +00:00
|
|
|
LL | f(&arena);
|
2019-04-22 07:40:08 +00:00
|
|
|
| ^^^^^^ borrowed value does not live long enough
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | }
|
2019-04-22 07:40:08 +00:00
|
|
|
| -
|
|
|
|
| |
|
|
|
|
| `arena` dropped here while still borrowed
|
2020-09-02 07:40:56 +00:00
|
|
|
| borrow might be used here, when `arena` is dropped and runs the `Drop` code for type `TypedArena`
|
2018-12-02 19:42:43 +00:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0597`.
|