rust/src/test/ui/span/issue-25199.stderr

24 lines
689 B
Plaintext
Raw Normal View History

2017-05-27 19:58:52 +02:00
error[E0597]: `container` does not live long enough
--> $DIR/issue-25199.rs:83:1
|
80 | let test = Test{test: &container};
| --------- borrow occurs here
...
83 | }
| ^ `container` dropped here while still borrowed
|
= note: values in a scope are dropped in the opposite order they are created
2017-05-27 19:58:52 +02:00
error[E0597]: `container` does not live long enough
--> $DIR/issue-25199.rs:83:1
|
82 | container.store(test);
| --------- borrow occurs here
83 | }
| ^ `container` dropped here while still borrowed
|
= note: values in a scope are dropped in the opposite order they are created
error: aborting due to previous error(s)