rust/src/test/ui/span/dropck_arr_cycle_checked.stderr

70 lines
2.2 KiB
Plaintext
Raw Normal View History

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
|
103 | b1.a[0].v.set(Some(&b2));
2017-12-13 19:27:23 -06:00
| ^^ borrowed value does not live long enough
...
2017-12-13 19:27:23 -06:00
115 | }
| - `b2` dropped here while still borrowed
|
= 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
|
2017-12-13 19:27:23 -06:00
105 | b1.a[1].v.set(Some(&b3));
| ^^ borrowed value does not live long enough
...
2017-12-13 19:27:23 -06:00
115 | }
| - `b3` dropped here while still borrowed
|
= 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
|
2017-12-13 19:27:23 -06:00
107 | b2.a[0].v.set(Some(&b2));
| ^^ borrowed value does not live long enough
...
2017-12-13 19:27:23 -06:00
115 | }
| - `b2` dropped here while still borrowed
|
= 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
|
2017-12-13 19:27:23 -06:00
109 | b2.a[1].v.set(Some(&b3));
| ^^ borrowed value does not live long enough
...
2017-12-13 19:27:23 -06:00
115 | }
| - `b3` dropped here while still borrowed
|
= 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
|
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
|
= 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
|
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
|
= note: values in a scope are dropped in the opposite order they are created
error: aborting due to 6 previous errors
2018-02-19 14:40:25 -06:00
If you want more information on this error, try using "rustc --explain E0597"