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