fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

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