|
| 1 | +error: [*, o] |
| 2 | + --> $DIR/variance.rs:8:29 |
| 3 | + | |
| 4 | +LL | type NotCapturedEarly<'a> = impl Sized; |
| 5 | + | ^^^^^^^^^^ |
| 6 | + |
| 7 | +error: [*, o] |
| 8 | + --> $DIR/variance.rs:11:26 |
| 9 | + | |
| 10 | +LL | type CapturedEarly<'a> = impl Sized + Captures<'a>; |
| 11 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 12 | + |
| 13 | +error: [*, o, o] |
| 14 | + --> $DIR/variance.rs:14:56 |
| 15 | + | |
| 16 | +LL | type NotCapturedLate<'a> = dyn for<'b> Iterator<Item = impl Sized>; |
| 17 | + | ^^^^^^^^^^ |
| 18 | + |
| 19 | +error: [*, o, o] |
| 20 | + --> $DIR/variance.rs:18:49 |
| 21 | + | |
| 22 | +LL | type Captured<'a> = dyn for<'b> Iterator<Item = impl Sized + Captures<'a>>; |
| 23 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 24 | + |
| 25 | +error: [*, *, o, o, o] |
| 26 | + --> $DIR/variance.rs:22:27 |
| 27 | + | |
| 28 | +LL | type Bar<'a, 'b: 'b, T> = impl Sized; |
| 29 | + | ^^^^^^^^^^ |
| 30 | + |
| 31 | +error: [*, *, o, o] |
| 32 | + --> $DIR/variance.rs:34:32 |
| 33 | + | |
| 34 | +LL | type ImplicitCapture<'a> = impl Sized; |
| 35 | + | ^^^^^^^^^^ |
| 36 | + |
| 37 | +error: [*, *, o, o] |
| 38 | + --> $DIR/variance.rs:37:42 |
| 39 | + | |
| 40 | +LL | type ExplicitCaptureFromHeader<'a> = impl Sized + Captures<'i>; |
| 41 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 42 | + |
| 43 | +error: [*, *, o, o] |
| 44 | + --> $DIR/variance.rs:40:39 |
| 45 | + | |
| 46 | +LL | type ExplicitCaptureFromGat<'a> = impl Sized + Captures<'a>; |
| 47 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 48 | + |
| 49 | +error: [*, *, o, o] |
| 50 | + --> $DIR/variance.rs:45:32 |
| 51 | + | |
| 52 | +LL | type ImplicitCapture<'a> = impl Sized; |
| 53 | + | ^^^^^^^^^^ |
| 54 | + |
| 55 | +error: [*, *, o, o] |
| 56 | + --> $DIR/variance.rs:48:42 |
| 57 | + | |
| 58 | +LL | type ExplicitCaptureFromHeader<'a> = impl Sized + Captures<'i>; |
| 59 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 60 | + |
| 61 | +error: [*, *, o, o] |
| 62 | + --> $DIR/variance.rs:51:39 |
| 63 | + | |
| 64 | +LL | type ExplicitCaptureFromGat<'a> = impl Sized + Captures<'a>; |
| 65 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 66 | + |
1 | 67 | error[E0657]: `impl Trait` cannot capture higher-ranked lifetime from `dyn` type
|
2 | 68 | --> $DIR/variance.rs:14:56
|
3 | 69 | |
|
@@ -110,72 +176,6 @@ LL | type ExplicitCaptureFromGat<'a> = impl Sized + Captures<'a>;
|
110 | 176 | |
|
111 | 177 | = note: `ExplicitCaptureFromGat` must be used in combination with a concrete type within the same impl
|
112 | 178 |
|
113 |
| -error: [*, o] |
114 |
| - --> $DIR/variance.rs:8:29 |
115 |
| - | |
116 |
| -LL | type NotCapturedEarly<'a> = impl Sized; |
117 |
| - | ^^^^^^^^^^ |
118 |
| - |
119 |
| -error: [*, o] |
120 |
| - --> $DIR/variance.rs:11:26 |
121 |
| - | |
122 |
| -LL | type CapturedEarly<'a> = impl Sized + Captures<'a>; |
123 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
124 |
| - |
125 |
| -error: [*, o, o] |
126 |
| - --> $DIR/variance.rs:14:56 |
127 |
| - | |
128 |
| -LL | type NotCapturedLate<'a> = dyn for<'b> Iterator<Item = impl Sized>; |
129 |
| - | ^^^^^^^^^^ |
130 |
| - |
131 |
| -error: [*, o, o] |
132 |
| - --> $DIR/variance.rs:18:49 |
133 |
| - | |
134 |
| -LL | type Captured<'a> = dyn for<'b> Iterator<Item = impl Sized + Captures<'a>>; |
135 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
136 |
| - |
137 |
| -error: [*, *, o, o, o] |
138 |
| - --> $DIR/variance.rs:22:27 |
139 |
| - | |
140 |
| -LL | type Bar<'a, 'b: 'b, T> = impl Sized; |
141 |
| - | ^^^^^^^^^^ |
142 |
| - |
143 |
| -error: [*, *, o, o] |
144 |
| - --> $DIR/variance.rs:34:32 |
145 |
| - | |
146 |
| -LL | type ImplicitCapture<'a> = impl Sized; |
147 |
| - | ^^^^^^^^^^ |
148 |
| - |
149 |
| -error: [*, *, o, o] |
150 |
| - --> $DIR/variance.rs:37:42 |
151 |
| - | |
152 |
| -LL | type ExplicitCaptureFromHeader<'a> = impl Sized + Captures<'i>; |
153 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
154 |
| - |
155 |
| -error: [*, *, o, o] |
156 |
| - --> $DIR/variance.rs:40:39 |
157 |
| - | |
158 |
| -LL | type ExplicitCaptureFromGat<'a> = impl Sized + Captures<'a>; |
159 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
160 |
| - |
161 |
| -error: [*, *, o, o] |
162 |
| - --> $DIR/variance.rs:45:32 |
163 |
| - | |
164 |
| -LL | type ImplicitCapture<'a> = impl Sized; |
165 |
| - | ^^^^^^^^^^ |
166 |
| - |
167 |
| -error: [*, *, o, o] |
168 |
| - --> $DIR/variance.rs:48:42 |
169 |
| - | |
170 |
| -LL | type ExplicitCaptureFromHeader<'a> = impl Sized + Captures<'i>; |
171 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
172 |
| - |
173 |
| -error: [*, *, o, o] |
174 |
| - --> $DIR/variance.rs:51:39 |
175 |
| - | |
176 |
| -LL | type ExplicitCaptureFromGat<'a> = impl Sized + Captures<'a>; |
177 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
178 |
| - |
179 | 179 | error: aborting due to 24 previous errors
|
180 | 180 |
|
181 | 181 | For more information about this error, try `rustc --explain E0657`.
|
0 commit comments