]> git.lizzy.rs Git - rust.git/blob - tests/ui-fulldeps/dropck-tarena-unsound-drop.stderr
Fix invalid float literal suggestions when recovering an integer
[rust.git] / tests / ui-fulldeps / dropck-tarena-unsound-drop.stderr
1 error[E0597]: `arena` does not live long enough
2   --> $DIR/dropck-tarena-unsound-drop.rs:41:7
3    |
4 LL |     f(&arena);
5    |       ^^^^^^ borrowed value does not live long enough
6 LL | }
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 `TypedArena`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0597`.