fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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