File: variance.stderr

package info (click to toggle)
rustc 1.85.0%2Bdfsg3-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, sid, trixie
  • size: 893,396 kB
  • sloc: xml: 158,127; python: 35,830; javascript: 19,497; cpp: 19,002; sh: 17,245; ansic: 13,127; asm: 4,376; makefile: 1,051; perl: 29; lisp: 29; ruby: 19; sql: 11
file content (235 lines) | stat: -rw-r--r-- 7,759 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
error[E0657]: `impl Trait` cannot capture higher-ranked lifetime from `dyn` type
  --> $DIR/variance.rs:14:56
   |
LL | type NotCapturedLate<'a> = dyn for<'b> Iterator<Item = impl Sized>;
   |                                                        ^^^^^^^^^^ `impl Trait` implicitly captures all lifetimes in scope
   |
note: lifetime declared here
  --> $DIR/variance.rs:14:36
   |
LL | type NotCapturedLate<'a> = dyn for<'b> Iterator<Item = impl Sized>;
   |                                    ^^

error[E0657]: `impl Trait` cannot capture higher-ranked lifetime from `dyn` type
  --> $DIR/variance.rs:18:49
   |
LL | type Captured<'a> = dyn for<'b> Iterator<Item = impl Sized + Captures<'a>>;
   |                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^ `impl Trait` implicitly captures all lifetimes in scope
   |
note: lifetime declared here
  --> $DIR/variance.rs:18:29
   |
LL | type Captured<'a> = dyn for<'b> Iterator<Item = impl Sized + Captures<'a>>;
   |                             ^^

error: unconstrained opaque type
  --> $DIR/variance.rs:8:29
   |
LL | type NotCapturedEarly<'a> = impl Sized;
   |                             ^^^^^^^^^^
   |
   = note: `NotCapturedEarly` must be used in combination with a concrete type within the same module

error: unconstrained opaque type
  --> $DIR/variance.rs:11:26
   |
LL | type CapturedEarly<'a> = impl Sized + Captures<'a>;
   |                          ^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `CapturedEarly` must be used in combination with a concrete type within the same module

error: unconstrained opaque type
  --> $DIR/variance.rs:14:56
   |
LL | type NotCapturedLate<'a> = dyn for<'b> Iterator<Item = impl Sized>;
   |                                                        ^^^^^^^^^^
   |
   = note: `NotCapturedLate` must be used in combination with a concrete type within the same module

error: unconstrained opaque type
  --> $DIR/variance.rs:18:49
   |
LL | type Captured<'a> = dyn for<'b> Iterator<Item = impl Sized + Captures<'a>>;
   |                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `Captured` must be used in combination with a concrete type within the same module

error: unconstrained opaque type
  --> $DIR/variance.rs:22:27
   |
LL | type Bar<'a, 'b: 'b, T> = impl Sized;
   |                           ^^^^^^^^^^
   |
   = note: `Bar` must be used in combination with a concrete type within the same module

error: unconstrained opaque type
  --> $DIR/variance.rs:34:32
   |
LL |     type ImplicitCapture<'a> = impl Sized;
   |                                ^^^^^^^^^^
   |
   = note: `ImplicitCapture` must be used in combination with a concrete type within the same impl

error: unconstrained opaque type
  --> $DIR/variance.rs:37:42
   |
LL |     type ExplicitCaptureFromHeader<'a> = impl Sized + Captures<'i>;
   |                                          ^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `ExplicitCaptureFromHeader` must be used in combination with a concrete type within the same impl

error: unconstrained opaque type
  --> $DIR/variance.rs:40:39
   |
LL |     type ExplicitCaptureFromGat<'a> = impl Sized + Captures<'a>;
   |                                       ^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `ExplicitCaptureFromGat` must be used in combination with a concrete type within the same impl

error: unconstrained opaque type
  --> $DIR/variance.rs:45:32
   |
LL |     type ImplicitCapture<'a> = impl Sized;
   |                                ^^^^^^^^^^
   |
   = note: `ImplicitCapture` must be used in combination with a concrete type within the same impl

error: unconstrained opaque type
  --> $DIR/variance.rs:48:42
   |
LL |     type ExplicitCaptureFromHeader<'a> = impl Sized + Captures<'i>;
   |                                          ^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `ExplicitCaptureFromHeader` must be used in combination with a concrete type within the same impl

error: unconstrained opaque type
  --> $DIR/variance.rs:51:39
   |
LL |     type ExplicitCaptureFromGat<'a> = impl Sized + Captures<'a>;
   |                                       ^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `ExplicitCaptureFromGat` must be used in combination with a concrete type within the same impl

error: ['a: *, 'a: o]
  --> $DIR/variance.rs:8:29
   |
LL | type NotCapturedEarly<'a> = impl Sized;
   |                             ^^^^^^^^^^

error: ['a: *, 'a: o]
  --> $DIR/variance.rs:11:26
   |
LL | type CapturedEarly<'a> = impl Sized + Captures<'a>;
   |                          ^^^^^^^^^^^^^^^^^^^^^^^^^

error: ['a: *, 'a: o, 'b: o]
  --> $DIR/variance.rs:14:56
   |
LL | type NotCapturedLate<'a> = dyn for<'b> Iterator<Item = impl Sized>;
   |                                                        ^^^^^^^^^^

error: ['a: *, 'a: o, 'b: o]
  --> $DIR/variance.rs:18:49
   |
LL | type Captured<'a> = dyn for<'b> Iterator<Item = impl Sized + Captures<'a>>;
   |                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^

error: ['a: *, 'b: *, T: o, 'a: o, 'b: o]
  --> $DIR/variance.rs:22:27
   |
LL | type Bar<'a, 'b: 'b, T> = impl Sized;
   |                           ^^^^^^^^^^

error: ['i: *, 'a: *, 'i: o, 'a: o]
  --> $DIR/variance.rs:34:32
   |
LL |     type ImplicitCapture<'a> = impl Sized;
   |                                ^^^^^^^^^^

error: ['i: *, 'a: *, 'i: o, 'a: o]
  --> $DIR/variance.rs:37:42
   |
LL |     type ExplicitCaptureFromHeader<'a> = impl Sized + Captures<'i>;
   |                                          ^^^^^^^^^^^^^^^^^^^^^^^^^

error: ['i: *, 'a: *, 'i: o, 'a: o]
  --> $DIR/variance.rs:40:39
   |
LL |     type ExplicitCaptureFromGat<'a> = impl Sized + Captures<'a>;
   |                                       ^^^^^^^^^^^^^^^^^^^^^^^^^

error: ['i: *, 'a: *, 'i: o, 'a: o]
  --> $DIR/variance.rs:45:32
   |
LL |     type ImplicitCapture<'a> = impl Sized;
   |                                ^^^^^^^^^^

error: ['i: *, 'a: *, 'i: o, 'a: o]
  --> $DIR/variance.rs:48:42
   |
LL |     type ExplicitCaptureFromHeader<'a> = impl Sized + Captures<'i>;
   |                                          ^^^^^^^^^^^^^^^^^^^^^^^^^

error: ['i: *, 'a: *, 'i: o, 'a: o]
  --> $DIR/variance.rs:51:39
   |
LL |     type ExplicitCaptureFromGat<'a> = impl Sized + Captures<'a>;
   |                                       ^^^^^^^^^^^^^^^^^^^^^^^^^

error: ['a: *, 'a: o]
  --> $DIR/variance.rs:62:5
   |
LL | /     impl Nesting<
LL | |         'a,
LL | |         Output = impl Nesting<
LL | |             'a,
...  |
LL | |         >,
LL | |     >;
   | |_____^

error: ['a: *, 'a: o]
  --> $DIR/variance.rs:64:18
   |
LL |           Output = impl Nesting<
   |  __________________^
LL | |             'a,
LL | |             Output = impl Nesting<
LL | |                 'a,
...  |
LL | |             >,
LL | |         >,
   | |_________^

error: ['a: *, 'a: o]
  --> $DIR/variance.rs:66:22
   |
LL |               Output = impl Nesting<
   |  ______________________^
LL | |                 'a,
LL | |                 Output = impl Nesting<
LL | |                     'a,
LL | |                     Output = impl Nesting<'a>
LL | |                 >
LL | |             >,
   | |_____________^

error: ['a: *, 'a: o]
  --> $DIR/variance.rs:68:26
   |
LL |                   Output = impl Nesting<
   |  __________________________^
LL | |                     'a,
LL | |                     Output = impl Nesting<'a>
LL | |                 >
   | |_________________^

error: ['a: *, 'a: o]
  --> $DIR/variance.rs:70:30
   |
LL |                     Output = impl Nesting<'a>
   |                              ^^^^^^^^^^^^^^^^

error: aborting due to 29 previous errors

For more information about this error, try `rustc --explain E0657`.