@@ -4,7 +4,7 @@ error[E0277]: the size for values of type `B` cannot be known at compilation tim
4
4
LL | impl<A, B> Trait<(A, B)> for (A, B) where A: ?Sized, B: ?Sized, {}
5
5
| - ^^^^^^ doesn't have a size known at compile-time
6
6
| |
7
- | this type parameter needs to be `std::marker:: Sized`
7
+ | this type parameter needs to be `Sized`
8
8
|
9
9
= note: required because it appears within the type `(A, B)`
10
10
note: required by a bound in `Trait`
@@ -28,7 +28,7 @@ error[E0277]: the size for values of type `A` cannot be known at compilation tim
28
28
LL | impl<A, B> Trait<(A, B)> for (A, B) where A: ?Sized, B: ?Sized, {}
29
29
| - ^^^^^^ doesn't have a size known at compile-time
30
30
| |
31
- | this type parameter needs to be `std::marker:: Sized`
31
+ | this type parameter needs to be `Sized`
32
32
|
33
33
= note: only the last element of a tuple may have a dynamically sized type
34
34
help: consider removing the `?Sized` bound to make the type parameter `Sized`
@@ -43,7 +43,7 @@ error[E0277]: the size for values of type `C` cannot be known at compilation tim
43
43
LL | impl<A, B: ?Sized, C: ?Sized> Trait<(A, B, C)> for (A, B, C) where A: ?Sized, {}
44
44
| - ^^^^^^^^^ doesn't have a size known at compile-time
45
45
| |
46
- | this type parameter needs to be `std::marker:: Sized`
46
+ | this type parameter needs to be `Sized`
47
47
|
48
48
= note: required because it appears within the type `(A, B, C)`
49
49
note: required by a bound in `Trait`
@@ -65,9 +65,7 @@ error[E0277]: the size for values of type `A` cannot be known at compilation tim
65
65
--> $DIR/unsized-bound.rs:5:52
66
66
|
67
67
LL | impl<A, B: ?Sized, C: ?Sized> Trait<(A, B, C)> for (A, B, C) where A: ?Sized, {}
68
- | - ^^^^^^^^^ doesn't have a size known at compile-time
69
- | |
70
- | this type parameter needs to be `std::marker::Sized`
68
+ | - this type parameter needs to be `Sized` ^^^^^^^^^ doesn't have a size known at compile-time
71
69
|
72
70
= note: only the last element of a tuple may have a dynamically sized type
73
71
help: consider removing the `?Sized` bound to make the type parameter `Sized`
@@ -80,9 +78,7 @@ error[E0277]: the size for values of type `B` cannot be known at compilation tim
80
78
--> $DIR/unsized-bound.rs:5:52
81
79
|
82
80
LL | impl<A, B: ?Sized, C: ?Sized> Trait<(A, B, C)> for (A, B, C) where A: ?Sized, {}
83
- | - ^^^^^^^^^ doesn't have a size known at compile-time
84
- | |
85
- | this type parameter needs to be `std::marker::Sized`
81
+ | - this type parameter needs to be `Sized` ^^^^^^^^^ doesn't have a size known at compile-time
86
82
|
87
83
= note: only the last element of a tuple may have a dynamically sized type
88
84
help: consider removing the `?Sized` bound to make the type parameter `Sized`
@@ -97,7 +93,7 @@ error[E0277]: the size for values of type `B` cannot be known at compilation tim
97
93
LL | impl<A: ?Sized, B: ?Sized> Trait2<(A, B)> for (A, B) {}
98
94
| - ^^^^^^ doesn't have a size known at compile-time
99
95
| |
100
- | this type parameter needs to be `std::marker:: Sized`
96
+ | this type parameter needs to be `Sized`
101
97
|
102
98
= note: required because it appears within the type `(A, B)`
103
99
note: required by a bound in `Trait2`
@@ -121,7 +117,7 @@ error[E0277]: the size for values of type `A` cannot be known at compilation tim
121
117
LL | impl<A: ?Sized, B: ?Sized> Trait2<(A, B)> for (A, B) {}
122
118
| - ^^^^^^ doesn't have a size known at compile-time
123
119
| |
124
- | this type parameter needs to be `std::marker:: Sized`
120
+ | this type parameter needs to be `Sized`
125
121
|
126
122
= note: only the last element of a tuple may have a dynamically sized type
127
123
help: consider removing the `?Sized` bound to make the type parameter `Sized`
@@ -136,7 +132,7 @@ error[E0277]: the size for values of type `A` cannot be known at compilation tim
136
132
LL | impl<A> Trait3<A> for A where A: ?Sized {}
137
133
| - ^ doesn't have a size known at compile-time
138
134
| |
139
- | this type parameter needs to be `std::marker:: Sized`
135
+ | this type parameter needs to be `Sized`
140
136
|
141
137
note: required by a bound in `Trait3`
142
138
--> $DIR/unsized-bound.rs:13:14
@@ -159,7 +155,7 @@ error[E0277]: the size for values of type `A` cannot be known at compilation tim
159
155
LL | impl<A: ?Sized> Trait4<A> for A {}
160
156
| - ^ doesn't have a size known at compile-time
161
157
| |
162
- | this type parameter needs to be `std::marker:: Sized`
158
+ | this type parameter needs to be `Sized`
163
159
|
164
160
note: required by a bound in `Trait4`
165
161
--> $DIR/unsized-bound.rs:16:14
@@ -182,7 +178,7 @@ error[E0277]: the size for values of type `X` cannot be known at compilation tim
182
178
LL | impl<X, Y> Trait5<X, Y> for X where X: ?Sized {}
183
179
| - ^ doesn't have a size known at compile-time
184
180
| |
185
- | this type parameter needs to be `std::marker:: Sized`
181
+ | this type parameter needs to be `Sized`
186
182
|
187
183
note: required by a bound in `Trait5`
188
184
--> $DIR/unsized-bound.rs:19:14
@@ -205,7 +201,7 @@ error[E0277]: the size for values of type `X` cannot be known at compilation tim
205
201
LL | impl<X: ?Sized, Y> Trait6<X, Y> for X {}
206
202
| - ^ doesn't have a size known at compile-time
207
203
| |
208
- | this type parameter needs to be `std::marker:: Sized`
204
+ | this type parameter needs to be `Sized`
209
205
|
210
206
note: required by a bound in `Trait6`
211
207
--> $DIR/unsized-bound.rs:22:14
@@ -228,7 +224,7 @@ error[E0277]: the size for values of type `Y` cannot be known at compilation tim
228
224
LL | impl<X, Y> Trait7<X, Y> for X where Y: ?Sized {}
229
225
| - ^^^^^^^^^^^^ doesn't have a size known at compile-time
230
226
| |
231
- | this type parameter needs to be `std::marker:: Sized`
227
+ | this type parameter needs to be `Sized`
232
228
|
233
229
note: required by a bound in `Trait7`
234
230
--> $DIR/unsized-bound.rs:25:17
@@ -251,7 +247,7 @@ error[E0277]: the size for values of type `Y` cannot be known at compilation tim
251
247
LL | impl<X, Y: ?Sized> Trait8<X, Y> for X {}
252
248
| - ^^^^^^^^^^^^ doesn't have a size known at compile-time
253
249
| |
254
- | this type parameter needs to be `std::marker:: Sized`
250
+ | this type parameter needs to be `Sized`
255
251
|
256
252
note: required by a bound in `Trait8`
257
253
--> $DIR/unsized-bound.rs:28:17
0 commit comments