2017-05-27 12:58:52 -05:00
|
|
|
error[E0597]: `b2` does not live long enough
|
2017-12-13 19:27:23 -06:00
|
|
|
--> $DIR/dropck_arr_cycle_checked.rs:103:25
|
2016-10-14 10:55:45 -05:00
|
|
|
|
|
|
|
|
103 | b1.a[0].v.set(Some(&b2));
|
2017-12-13 19:27:23 -06:00
|
|
|
| ^^ borrowed value does not live long enough
|
2016-10-14 10:55:45 -05:00
|
|
|
...
|
2017-12-13 19:27:23 -06:00
|
|
|
115 | }
|
|
|
|
| - `b2` dropped here while still borrowed
|
2016-10-14 10:55:45 -05:00
|
|
|
|
|
|
|
|
= note: values in a scope are dropped in the opposite order they are created
|
|
|
|
|
2017-05-27 12:58:52 -05:00
|
|
|
error[E0597]: `b3` does not live long enough
|
2017-12-13 19:27:23 -06:00
|
|
|
--> $DIR/dropck_arr_cycle_checked.rs:105:25
|
2016-10-14 10:55:45 -05:00
|
|
|
|
|
2017-12-13 19:27:23 -06:00
|
|
|
105 | b1.a[1].v.set(Some(&b3));
|
|
|
|
| ^^ borrowed value does not live long enough
|
2016-10-14 10:55:45 -05:00
|
|
|
...
|
2017-12-13 19:27:23 -06:00
|
|
|
115 | }
|
|
|
|
| - `b3` dropped here while still borrowed
|
2016-10-14 10:55:45 -05:00
|
|
|
|
|
|
|
|
= note: values in a scope are dropped in the opposite order they are created
|
|
|
|
|
2017-05-27 12:58:52 -05:00
|
|
|
error[E0597]: `b2` does not live long enough
|
2017-12-13 19:27:23 -06:00
|
|
|
--> $DIR/dropck_arr_cycle_checked.rs:107:25
|
2016-10-14 10:55:45 -05:00
|
|
|
|
|
2017-12-13 19:27:23 -06:00
|
|
|
107 | b2.a[0].v.set(Some(&b2));
|
|
|
|
| ^^ borrowed value does not live long enough
|
2016-10-14 10:55:45 -05:00
|
|
|
...
|
2017-12-13 19:27:23 -06:00
|
|
|
115 | }
|
|
|
|
| - `b2` dropped here while still borrowed
|
2016-10-14 10:55:45 -05:00
|
|
|
|
|
|
|
|
= note: values in a scope are dropped in the opposite order they are created
|
|
|
|
|
2017-05-27 12:58:52 -05:00
|
|
|
error[E0597]: `b3` does not live long enough
|
2017-12-13 19:27:23 -06:00
|
|
|
--> $DIR/dropck_arr_cycle_checked.rs:109:25
|
2016-10-14 10:55:45 -05:00
|
|
|
|
|
2017-12-13 19:27:23 -06:00
|
|
|
109 | b2.a[1].v.set(Some(&b3));
|
|
|
|
| ^^ borrowed value does not live long enough
|
2016-10-14 10:55:45 -05:00
|
|
|
...
|
2017-12-13 19:27:23 -06:00
|
|
|
115 | }
|
|
|
|
| - `b3` dropped here while still borrowed
|
2016-10-14 10:55:45 -05:00
|
|
|
|
|
|
|
|
= note: values in a scope are dropped in the opposite order they are created
|
|
|
|
|
2017-05-27 12:58:52 -05:00
|
|
|
error[E0597]: `b1` does not live long enough
|
2017-12-13 19:27:23 -06:00
|
|
|
--> $DIR/dropck_arr_cycle_checked.rs:111:25
|
2016-10-14 10:55:45 -05:00
|
|
|
|
|
2017-12-13 19:27:23 -06:00
|
|
|
111 | b3.a[0].v.set(Some(&b1));
|
|
|
|
| ^^ borrowed value does not live long enough
|
|
|
|
...
|
|
|
|
115 | }
|
|
|
|
| - `b1` dropped here while still borrowed
|
2016-10-14 10:55:45 -05:00
|
|
|
|
|
|
|
|
= note: values in a scope are dropped in the opposite order they are created
|
|
|
|
|
2017-05-27 12:58:52 -05:00
|
|
|
error[E0597]: `b2` does not live long enough
|
2017-12-13 19:27:23 -06:00
|
|
|
--> $DIR/dropck_arr_cycle_checked.rs:113:25
|
2016-10-14 10:55:45 -05:00
|
|
|
|
|
2017-12-13 19:27:23 -06:00
|
|
|
113 | b3.a[1].v.set(Some(&b2));
|
|
|
|
| ^^ borrowed value does not live long enough
|
|
|
|
114 | //~^ ERROR `b2` does not live long enough
|
|
|
|
115 | }
|
|
|
|
| - `b2` dropped here while still borrowed
|
2016-10-14 10:55:45 -05:00
|
|
|
|
|
|
|
|
= note: values in a scope are dropped in the opposite order they are created
|
|
|
|
|
2017-07-02 05:49:30 -05:00
|
|
|
error: aborting due to 6 previous errors
|
2016-10-14 10:55:45 -05:00
|
|
|
|
2018-02-19 14:40:25 -06:00
|
|
|
If you want more information on this error, try using "rustc --explain E0597"
|