fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
464 B14 linesraw
1error[E0597]: `arena` does not live long enough
2  --> $DIR/dropck-tarena-unsound-drop.rs:41:7
3   |
4LL |     f(&arena);
5   |       ^^^^^^ borrowed value does not live long enough
6LL | }
7   | -
8   | |
9   | `arena` dropped here while still borrowed
10   | borrow might be used here, when `arena` is dropped and runs the `Drop` code for type `arena::TypedArena`
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0597`.