]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/dropck_arr_cycle_checked.nll.stderr
Rollup merge of #52695 - oli-obk:const_err_panic, r=petrochenkov
[rust.git] / src / test / ui / span / dropck_arr_cycle_checked.nll.stderr
1 error[E0597]: `b3` does not live long enough
2   --> $DIR/dropck_arr_cycle_checked.rs:105:24
3    |
4 LL |     b1.a[1].v.set(Some(&b3));
5    |                        ^^^ borrowed value does not live long enough
6 ...
7 LL | }
8    | -
9    | |
10    | `b3` dropped here while still borrowed
11    | borrow later used here, when `b1` is dropped
12
13 error[E0597]: `b2` does not live long enough
14   --> $DIR/dropck_arr_cycle_checked.rs:103:24
15    |
16 LL |     b1.a[0].v.set(Some(&b2));
17    |                        ^^^ borrowed value does not live long enough
18 ...
19 LL | }
20    | -
21    | |
22    | `b2` dropped here while still borrowed
23    | borrow later used here, when `b1` is dropped
24
25 error[E0597]: `b1` does not live long enough
26   --> $DIR/dropck_arr_cycle_checked.rs:111:24
27    |
28 LL |     b3.a[0].v.set(Some(&b1));
29    |                        ^^^ borrowed value does not live long enough
30 ...
31 LL | }
32    | -
33    | |
34    | `b1` dropped here while still borrowed
35    | borrow later used here, when `b1` is dropped
36
37 error: aborting due to 3 previous errors
38
39 For more information about this error, try `rustc --explain E0597`.