@@ -2,7 +2,7 @@ error[E0597]: `o2` does not live long enough
2
2
--> $DIR/dropck_trait_cycle_checked.rs:111:13
3
3
|
4
4
LL | let (o1, o2, o3): (Box<dyn Obj>, Box<dyn Obj>, Box<dyn Obj>) = (O::new(), O::new(), O::new());
5
- | -------- cast requires that `o2` is borrowed for `'static`
5
+ | -------- cast requires that `o2` is borrowed for `'static`
6
6
LL | o1.set0(&o2);
7
7
| ^^^ borrowed value does not live long enough
8
8
...
@@ -13,7 +13,7 @@ error[E0597]: `o3` does not live long enough
13
13
--> $DIR/dropck_trait_cycle_checked.rs:112:13
14
14
|
15
15
LL | let (o1, o2, o3): (Box<dyn Obj>, Box<dyn Obj>, Box<dyn Obj>) = (O::new(), O::new(), O::new());
16
- | -------- cast requires that `o3` is borrowed for `'static`
16
+ | -------- cast requires that `o3` is borrowed for `'static`
17
17
LL | o1.set0(&o2);
18
18
LL | o1.set1(&o3);
19
19
| ^^^ borrowed value does not live long enough
@@ -37,7 +37,7 @@ error[E0597]: `o3` does not live long enough
37
37
--> $DIR/dropck_trait_cycle_checked.rs:114:13
38
38
|
39
39
LL | let (o1, o2, o3): (Box<dyn Obj>, Box<dyn Obj>, Box<dyn Obj>) = (O::new(), O::new(), O::new());
40
- | -------- cast requires that `o3` is borrowed for `'static`
40
+ | -------- cast requires that `o3` is borrowed for `'static`
41
41
...
42
42
LL | o2.set1(&o3);
43
43
| ^^^ borrowed value does not live long enough
@@ -49,7 +49,7 @@ error[E0597]: `o1` does not live long enough
49
49
--> $DIR/dropck_trait_cycle_checked.rs:115:13
50
50
|
51
51
LL | let (o1, o2, o3): (Box<dyn Obj>, Box<dyn Obj>, Box<dyn Obj>) = (O::new(), O::new(), O::new());
52
- | -------- cast requires that `o1` is borrowed for `'static`
52
+ | -------- cast requires that `o1` is borrowed for `'static`
53
53
...
54
54
LL | o3.set0(&o1);
55
55
| ^^^ borrowed value does not live long enough
@@ -61,7 +61,7 @@ error[E0597]: `o2` does not live long enough
61
61
--> $DIR/dropck_trait_cycle_checked.rs:116:13
62
62
|
63
63
LL | let (o1, o2, o3): (Box<dyn Obj>, Box<dyn Obj>, Box<dyn Obj>) = (O::new(), O::new(), O::new());
64
- | -------- cast requires that `o2` is borrowed for `'static`
64
+ | -------- cast requires that `o2` is borrowed for `'static`
65
65
...
66
66
LL | o3.set1(&o2);
67
67
| ^^^ borrowed value does not live long enough
0 commit comments