]> git.lizzy.rs Git - rust.git/blob - tests/ui-fulldeps/dropck-tarena-cycle-checked.stderr
Rollup merge of #106944 - Nilstrieb:there-once-was-a-diagnostic, r=WaffleLapkin
[rust.git] / tests / ui-fulldeps / dropck-tarena-cycle-checked.stderr
1 error[E0597]: `arena` does not live long enough
2   --> $DIR/dropck-tarena-cycle-checked.rs:116:7
3    |
4 LL |     let arena = TypedArena::default();
5    |         ----- binding `arena` declared here
6 LL |     f(&arena);
7    |       ^^^^^^ borrowed value does not live long enough
8 LL | }
9    | -
10    | |
11    | `arena` dropped here while still borrowed
12    | borrow might be used here, when `arena` is dropped and runs the `Drop` code for type `TypedArena`
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0597`.