blob: ab255cf0c9893dacfe9d0e6734890be9f8f9bc5d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
error[E0597]: `o2` does not live long enough
--> $DIR/dropck_trait_cycle_checked.rs:121:14
|
LL | o1.set0(&o2); //~ ERROR `o2` does not live long enough
| ^^ borrowed value does not live long enough
...
LL | }
| - borrowed value only lives until here
|
= note: borrowed value must be valid for the static lifetime...
error[E0597]: `o3` does not live long enough
--> $DIR/dropck_trait_cycle_checked.rs:122:14
|
LL | o1.set1(&o3); //~ ERROR `o3` does not live long enough
| ^^ borrowed value does not live long enough
...
LL | }
| - borrowed value only lives until here
|
= note: borrowed value must be valid for the static lifetime...
error[E0597]: `o2` does not live long enough
--> $DIR/dropck_trait_cycle_checked.rs:123:14
|
LL | o2.set0(&o2); //~ ERROR `o2` does not live long enough
| ^^ borrowed value does not live long enough
...
LL | }
| - borrowed value only lives until here
|
= note: borrowed value must be valid for the static lifetime...
error[E0597]: `o3` does not live long enough
--> $DIR/dropck_trait_cycle_checked.rs:124:14
|
LL | o2.set1(&o3); //~ ERROR `o3` does not live long enough
| ^^ borrowed value does not live long enough
...
LL | }
| - borrowed value only lives until here
|
= note: borrowed value must be valid for the static lifetime...
error[E0597]: `o1` does not live long enough
--> $DIR/dropck_trait_cycle_checked.rs:125:14
|
LL | o3.set0(&o1); //~ ERROR `o1` does not live long enough
| ^^ borrowed value does not live long enough
LL | o3.set1(&o2); //~ ERROR `o2` does not live long enough
LL | }
| - borrowed value only lives until here
|
= note: borrowed value must be valid for the static lifetime...
error[E0597]: `o2` does not live long enough
--> $DIR/dropck_trait_cycle_checked.rs:126:14
|
LL | o3.set1(&o2); //~ ERROR `o2` does not live long enough
| ^^ borrowed value does not live long enough
LL | }
| - borrowed value only lives until here
|
= note: borrowed value must be valid for the static lifetime...
error: aborting due to 6 previous errors
For more information about this error, try `rustc --explain E0597`.
|