fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
6.0 KiB179 linesraw
1note: External requirements
2  --> $DIR/projection-one-region-closure.rs:45:29
3   |
4LL |     with_signature(cell, t, |cell, t| require(cell, t));
5   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^
6   |
7   = note: defining type: DefId(0:28 ~ projection_one_region_closure[317d]::no_relationships_late[0]::{{closure}}[0]) with closure substs [
8               '_#1r,
9               T,
10               i32,
11               extern "rust-call" fn((std::cell::Cell<&'_#2r ()>, T)),
12           ]
13   = note: late-bound region is '_#3r
14   = note: number of external vids: 4
15   = note: where T: '_#2r
16   = note: where '_#1r: '_#2r
17
18note: No external requirements
19  --> $DIR/projection-one-region-closure.rs:41:1
20   |
21LL | / fn no_relationships_late<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
22LL | | where
23LL | |     T: Anything<'b>,
24LL | | {
25...  |
26LL | |
27LL | | }
28   | |_^
29   |
30   = note: defining type: DefId(0:24 ~ projection_one_region_closure[317d]::no_relationships_late[0]) with substs [
31               '_#1r,
32               T,
33           ]
34
35error[E0309]: the parameter type `T` may not live long enough
36  --> $DIR/projection-one-region-closure.rs:45:29
37   |
38LL |     with_signature(cell, t, |cell, t| require(cell, t));
39   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^
40   |
41   = help: consider adding an explicit lifetime bound `T: ReFree(DefId(0:24 ~ projection_one_region_closure[317d]::no_relationships_late[0]), BrNamed(crate0:DefIndex(25), 'a))`...
42
43error: lifetime may not live long enough
44  --> $DIR/projection-one-region-closure.rs:45:39
45   |
46LL | fn no_relationships_late<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
47   |                          --  -- lifetime `'b` defined here
48   |                          |
49   |                          lifetime `'a` defined here
50...
51LL |     with_signature(cell, t, |cell, t| require(cell, t));
52   |                                       ^^^^^^^^^^^^^^^^ argument requires that `'b` must outlive `'a`
53
54note: External requirements
55  --> $DIR/projection-one-region-closure.rs:56:29
56   |
57LL |     with_signature(cell, t, |cell, t| require(cell, t));
58   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^
59   |
60   = note: defining type: DefId(0:33 ~ projection_one_region_closure[317d]::no_relationships_early[0]::{{closure}}[0]) with closure substs [
61               '_#1r,
62               '_#2r,
63               T,
64               i32,
65               extern "rust-call" fn((std::cell::Cell<&'_#3r ()>, T)),
66           ]
67   = note: number of external vids: 4
68   = note: where T: '_#3r
69   = note: where '_#2r: '_#3r
70
71note: No external requirements
72  --> $DIR/projection-one-region-closure.rs:51:1
73   |
74LL | / fn no_relationships_early<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
75LL | | where
76LL | |     T: Anything<'b>,
77LL | |     'a: 'a,
78...  |
79LL | |
80LL | | }
81   | |_^
82   |
83   = note: defining type: DefId(0:29 ~ projection_one_region_closure[317d]::no_relationships_early[0]) with substs [
84               '_#1r,
85               '_#2r,
86               T,
87           ]
88
89error[E0309]: the parameter type `T` may not live long enough
90  --> $DIR/projection-one-region-closure.rs:56:29
91   |
92LL |     with_signature(cell, t, |cell, t| require(cell, t));
93   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^
94   |
95   = help: consider adding an explicit lifetime bound `T: ReEarlyBound(0, 'a)`...
96
97error: lifetime may not live long enough
98  --> $DIR/projection-one-region-closure.rs:56:39
99   |
100LL | fn no_relationships_early<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
101   |                           --  -- lifetime `'b` defined here
102   |                           |
103   |                           lifetime `'a` defined here
104...
105LL |     with_signature(cell, t, |cell, t| require(cell, t));
106   |                                       ^^^^^^^^^^^^^^^^ argument requires that `'b` must outlive `'a`
107
108note: External requirements
109  --> $DIR/projection-one-region-closure.rs:70:29
110   |
111LL |     with_signature(cell, t, |cell, t| require(cell, t));
112   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^
113   |
114   = note: defining type: DefId(0:38 ~ projection_one_region_closure[317d]::projection_outlives[0]::{{closure}}[0]) with closure substs [
115               '_#1r,
116               '_#2r,
117               T,
118               i32,
119               extern "rust-call" fn((std::cell::Cell<&'_#3r ()>, T)),
120           ]
121   = note: number of external vids: 4
122   = note: where <T as Anything<ReClosureBound('_#2r)>>::AssocType: '_#3r
123
124note: No external requirements
125  --> $DIR/projection-one-region-closure.rs:62:1
126   |
127LL | / fn projection_outlives<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
128LL | | where
129LL | |     T: Anything<'b>,
130LL | |     T::AssocType: 'a,
131...  |
132LL | |     with_signature(cell, t, |cell, t| require(cell, t));
133LL | | }
134   | |_^
135   |
136   = note: defining type: DefId(0:34 ~ projection_one_region_closure[317d]::projection_outlives[0]) with substs [
137               '_#1r,
138               '_#2r,
139               T,
140           ]
141
142note: External requirements
143  --> $DIR/projection-one-region-closure.rs:80:29
144   |
145LL |     with_signature(cell, t, |cell, t| require(cell, t));
146   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^
147   |
148   = note: defining type: DefId(0:43 ~ projection_one_region_closure[317d]::elements_outlive[0]::{{closure}}[0]) with closure substs [
149               '_#1r,
150               '_#2r,
151               T,
152               i32,
153               extern "rust-call" fn((std::cell::Cell<&'_#3r ()>, T)),
154           ]
155   = note: number of external vids: 4
156   = note: where T: '_#3r
157   = note: where '_#2r: '_#3r
158
159note: No external requirements
160  --> $DIR/projection-one-region-closure.rs:74:1
161   |
162LL | / fn elements_outlive<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
163LL | | where
164LL | |     T: Anything<'b>,
165LL | |     T: 'a,
166...  |
167LL | |     with_signature(cell, t, |cell, t| require(cell, t));
168LL | | }
169   | |_^
170   |
171   = note: defining type: DefId(0:39 ~ projection_one_region_closure[317d]::elements_outlive[0]) with substs [
172               '_#1r,
173               '_#2r,
174               T,
175           ]
176
177error: aborting due to 4 previous errors
178
179For more information about this error, try `rustc --explain E0309`.