2017-05-27 19:58:52 +02:00
|
|
|
error[E0597]: `container` does not live long enough
|
2016-10-14 18:55:45 +03:00
|
|
|
--> $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
|
2016-10-14 18:55:45 +03:00
|
|
|
--> $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
|
|
|
|
|
2017-05-22 18:46:05 +07:00
|
|
|
error: aborting due to previous error(s)
|
2016-10-14 18:55:45 +03:00
|
|
|
|