fork/rust

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

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

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