fork/rust

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

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

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