]>
Commit | Line | Data |
---|---|---|
b7449926 XL |
1 | error[E0597]: `o2` does not live long enough |
2 | --> $DIR/dropck_trait_cycle_checked.rs:121:13 | |
3 | | | |
0bf4aa26 XL |
4 | LL | let (o1, o2, o3): (Box<Obj>, Box<Obj>, Box<Obj>) = (O::new(), O::new(), O::new()); |
5 | | -------- cast requires that `o2` is borrowed for `'static` | |
b7449926 XL |
6 | LL | o1.set0(&o2); //~ ERROR `o2` does not live long enough |
7 | | ^^^ borrowed value does not live long enough | |
8 | ... | |
9 | LL | } | |
10 | | - `o2` dropped here while still borrowed | |
b7449926 XL |
11 | |
12 | error[E0597]: `o3` does not live long enough | |
13 | --> $DIR/dropck_trait_cycle_checked.rs:122:13 | |
14 | | | |
0bf4aa26 XL |
15 | LL | let (o1, o2, o3): (Box<Obj>, Box<Obj>, Box<Obj>) = (O::new(), O::new(), O::new()); |
16 | | -------- cast requires that `o3` is borrowed for `'static` | |
17 | LL | o1.set0(&o2); //~ ERROR `o2` does not live long enough | |
b7449926 XL |
18 | LL | o1.set1(&o3); //~ ERROR `o3` does not live long enough |
19 | | ^^^ borrowed value does not live long enough | |
20 | ... | |
21 | LL | } | |
22 | | - `o3` dropped here while still borrowed | |
b7449926 XL |
23 | |
24 | error[E0597]: `o2` does not live long enough | |
25 | --> $DIR/dropck_trait_cycle_checked.rs:123:13 | |
26 | | | |
0bf4aa26 XL |
27 | LL | let (o1, o2, o3): (Box<Obj>, Box<Obj>, Box<Obj>) = (O::new(), O::new(), O::new()); |
28 | | -------- cast requires that `o2` is borrowed for `'static` | |
29 | ... | |
b7449926 XL |
30 | LL | o2.set0(&o2); //~ ERROR `o2` does not live long enough |
31 | | ^^^ borrowed value does not live long enough | |
32 | ... | |
33 | LL | } | |
34 | | - `o2` dropped here while still borrowed | |
b7449926 XL |
35 | |
36 | error[E0597]: `o3` does not live long enough | |
37 | --> $DIR/dropck_trait_cycle_checked.rs:124:13 | |
38 | | | |
0bf4aa26 XL |
39 | LL | let (o1, o2, o3): (Box<Obj>, Box<Obj>, Box<Obj>) = (O::new(), O::new(), O::new()); |
40 | | -------- cast requires that `o3` is borrowed for `'static` | |
41 | ... | |
b7449926 XL |
42 | LL | o2.set1(&o3); //~ ERROR `o3` does not live long enough |
43 | | ^^^ borrowed value does not live long enough | |
44 | ... | |
45 | LL | } | |
46 | | - `o3` dropped here while still borrowed | |
b7449926 XL |
47 | |
48 | error[E0597]: `o1` does not live long enough | |
49 | --> $DIR/dropck_trait_cycle_checked.rs:125:13 | |
50 | | | |
0bf4aa26 XL |
51 | LL | let (o1, o2, o3): (Box<Obj>, Box<Obj>, Box<Obj>) = (O::new(), O::new(), O::new()); |
52 | | -------- cast requires that `o1` is borrowed for `'static` | |
53 | ... | |
b7449926 XL |
54 | LL | o3.set0(&o1); //~ ERROR `o1` does not live long enough |
55 | | ^^^ borrowed value does not live long enough | |
56 | LL | o3.set1(&o2); //~ ERROR `o2` does not live long enough | |
57 | LL | } | |
58 | | - `o1` dropped here while still borrowed | |
b7449926 XL |
59 | |
60 | error[E0597]: `o2` does not live long enough | |
61 | --> $DIR/dropck_trait_cycle_checked.rs:126:13 | |
62 | | | |
0bf4aa26 XL |
63 | LL | let (o1, o2, o3): (Box<Obj>, Box<Obj>, Box<Obj>) = (O::new(), O::new(), O::new()); |
64 | | -------- cast requires that `o2` is borrowed for `'static` | |
65 | ... | |
b7449926 XL |
66 | LL | o3.set1(&o2); //~ ERROR `o2` does not live long enough |
67 | | ^^^ borrowed value does not live long enough | |
68 | LL | } | |
69 | | - `o2` dropped here while still borrowed | |
b7449926 XL |
70 | |
71 | error: aborting due to 6 previous errors | |
72 | ||
73 | For more information about this error, try `rustc --explain E0597`. |