]> git.proxmox.com Git - rustc.git/blame - src/test/ui/dropck/dropck_trait_cycle_checked.nll.stderr
New upstream version 1.31.0~beta.4+dfsg1
[rustc.git] / src / test / ui / dropck / dropck_trait_cycle_checked.nll.stderr
CommitLineData
b7449926
XL
1error[E0597]: `o2` does not live long enough
2 --> $DIR/dropck_trait_cycle_checked.rs:121:13
3 |
0bf4aa26
XL
4LL | 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
6LL | o1.set0(&o2); //~ ERROR `o2` does not live long enough
7 | ^^^ borrowed value does not live long enough
8...
9LL | }
10 | - `o2` dropped here while still borrowed
b7449926
XL
11
12error[E0597]: `o3` does not live long enough
13 --> $DIR/dropck_trait_cycle_checked.rs:122:13
14 |
0bf4aa26
XL
15LL | 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`
17LL | o1.set0(&o2); //~ ERROR `o2` does not live long enough
b7449926
XL
18LL | o1.set1(&o3); //~ ERROR `o3` does not live long enough
19 | ^^^ borrowed value does not live long enough
20...
21LL | }
22 | - `o3` dropped here while still borrowed
b7449926
XL
23
24error[E0597]: `o2` does not live long enough
25 --> $DIR/dropck_trait_cycle_checked.rs:123:13
26 |
0bf4aa26
XL
27LL | 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
30LL | o2.set0(&o2); //~ ERROR `o2` does not live long enough
31 | ^^^ borrowed value does not live long enough
32...
33LL | }
34 | - `o2` dropped here while still borrowed
b7449926
XL
35
36error[E0597]: `o3` does not live long enough
37 --> $DIR/dropck_trait_cycle_checked.rs:124:13
38 |
0bf4aa26
XL
39LL | 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
42LL | o2.set1(&o3); //~ ERROR `o3` does not live long enough
43 | ^^^ borrowed value does not live long enough
44...
45LL | }
46 | - `o3` dropped here while still borrowed
b7449926
XL
47
48error[E0597]: `o1` does not live long enough
49 --> $DIR/dropck_trait_cycle_checked.rs:125:13
50 |
0bf4aa26
XL
51LL | 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
54LL | o3.set0(&o1); //~ ERROR `o1` does not live long enough
55 | ^^^ borrowed value does not live long enough
56LL | o3.set1(&o2); //~ ERROR `o2` does not live long enough
57LL | }
58 | - `o1` dropped here while still borrowed
b7449926
XL
59
60error[E0597]: `o2` does not live long enough
61 --> $DIR/dropck_trait_cycle_checked.rs:126:13
62 |
0bf4aa26
XL
63LL | 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
66LL | o3.set1(&o2); //~ ERROR `o2` does not live long enough
67 | ^^^ borrowed value does not live long enough
68LL | }
69 | - `o2` dropped here while still borrowed
b7449926
XL
70
71error: aborting due to 6 previous errors
72
73For more information about this error, try `rustc --explain E0597`.