]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/dropck_arr_cycle_checked.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / span / dropck_arr_cycle_checked.stderr
1 error[E0597]: `b2` does not live long enough
2   --> $DIR/dropck_arr_cycle_checked.rs:103:25
3    |
4 LL |     b1.a[0].v.set(Some(&b2));
5    |                         ^^ borrowed value does not live long enough
6 ...
7 LL | }
8    | - `b2` dropped here while still borrowed
9    |
10    = note: values in a scope are dropped in the opposite order they are created
11
12 error[E0597]: `b3` does not live long enough
13   --> $DIR/dropck_arr_cycle_checked.rs:105:25
14    |
15 LL |     b1.a[1].v.set(Some(&b3));
16    |                         ^^ borrowed value does not live long enough
17 ...
18 LL | }
19    | - `b3` dropped here while still borrowed
20    |
21    = note: values in a scope are dropped in the opposite order they are created
22
23 error[E0597]: `b2` does not live long enough
24   --> $DIR/dropck_arr_cycle_checked.rs:107:25
25    |
26 LL |     b2.a[0].v.set(Some(&b2));
27    |                         ^^ borrowed value does not live long enough
28 ...
29 LL | }
30    | - `b2` dropped here while still borrowed
31    |
32    = note: values in a scope are dropped in the opposite order they are created
33
34 error[E0597]: `b3` does not live long enough
35   --> $DIR/dropck_arr_cycle_checked.rs:109:25
36    |
37 LL |     b2.a[1].v.set(Some(&b3));
38    |                         ^^ borrowed value does not live long enough
39 ...
40 LL | }
41    | - `b3` dropped here while still borrowed
42    |
43    = note: values in a scope are dropped in the opposite order they are created
44
45 error[E0597]: `b1` does not live long enough
46   --> $DIR/dropck_arr_cycle_checked.rs:111:25
47    |
48 LL |     b3.a[0].v.set(Some(&b1));
49    |                         ^^ borrowed value does not live long enough
50 ...
51 LL | }
52    | - `b1` dropped here while still borrowed
53    |
54    = note: values in a scope are dropped in the opposite order they are created
55
56 error[E0597]: `b2` does not live long enough
57   --> $DIR/dropck_arr_cycle_checked.rs:113:25
58    |
59 LL |     b3.a[1].v.set(Some(&b2));
60    |                         ^^ borrowed value does not live long enough
61 LL |     //~^ ERROR `b2` does not live long enough
62 LL | }
63    | - `b2` dropped here while still borrowed
64    |
65    = note: values in a scope are dropped in the opposite order they are created
66
67 error: aborting due to 6 previous errors
68
69 For more information about this error, try `rustc --explain E0597`.