fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
565 B16 linesraw
1error[E0597]: `arena` does not live long enough
2  --> $DIR/dropck-tarena-unsound-drop.rs:41:7
3   |
4LL |     let arena: TypedArena<C> = TypedArena::default();
5   |         ----- binding `arena` declared here
6LL |     f(&arena);
7   |       ^^^^^^ borrowed value does not live long enough
8LL | }
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
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0597`.