fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

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