]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui-fulldeps/dropck-tarena-cycle-checked.stderr
Auto merge of #65302 - msizanoen1:fix-armv7-segfault, r=alexcrichton
[rust.git] / src / test / ui-fulldeps / dropck-tarena-cycle-checked.stderr
index b6d5ee0cafef6edfca551ce1ab75b4f86d665d04..7009c0bba6981b59b74d5916727afe21f37bc992 100644 (file)
@@ -1,12 +1,13 @@
 error[E0597]: `arena` does not live long enough
-  --> $DIR/dropck-tarena-cycle-checked.rs:116:8
+  --> $DIR/dropck-tarena-cycle-checked.rs:116:7
    |
 LL |     f(&arena);
-   |        ^^^^^ borrowed value does not live long enough
+   |       ^^^^^^ borrowed value does not live long enough
 LL | }
-   | - `arena` dropped here while still borrowed
-   |
-   = note: values in a scope are dropped in the opposite order they are created
+   | -
+   | |
+   | `arena` dropped here while still borrowed
+   | borrow might be used here, when `arena` is dropped and runs the `Drop` code for type `arena::TypedArena`
 
 error: aborting due to previous error