2021-07-24 01:47:53 +00:00
|
|
|
error[E0277]: the size for values of type `B` cannot be known at compilation time
|
2023-01-12 20:15:00 +00:00
|
|
|
--> $DIR/unsized-bound.rs:2:30
|
2021-07-24 01:47:53 +00:00
|
|
|
|
|
|
|
|
LL | impl<A, B> Trait<(A, B)> for (A, B) where A: ?Sized, B: ?Sized, {}
|
2023-01-12 20:15:00 +00:00
|
|
|
| - ^^^^^^ doesn't have a size known at compile-time
|
2021-07-24 01:47:53 +00:00
|
|
|
| |
|
|
|
|
| this type parameter needs to be `std::marker::Sized`
|
|
|
|
|
|
|
|
|
= note: required because it appears within the type `(A, B)`
|
2021-07-31 16:26:55 +00:00
|
|
|
note: required by a bound in `Trait`
|
|
|
|
--> $DIR/unsized-bound.rs:1:13
|
|
|
|
|
|
|
|
|
LL | trait Trait<A> {}
|
|
|
|
| ^ required by this bound in `Trait`
|
2021-07-24 01:47:53 +00:00
|
|
|
help: consider removing the `?Sized` bound to make the type parameter `Sized`
|
|
|
|
|
|
2021-06-22 02:07:19 +00:00
|
|
|
LL - impl<A, B> Trait<(A, B)> for (A, B) where A: ?Sized, B: ?Sized, {}
|
|
|
|
LL + impl<A, B> Trait<(A, B)> for (A, B) where A: ?Sized, {}
|
2022-06-08 17:34:57 +00:00
|
|
|
|
|
2021-07-24 01:47:53 +00:00
|
|
|
help: consider relaxing the implicit `Sized` restriction
|
|
|
|
|
|
|
|
|
LL | trait Trait<A: ?Sized> {}
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++++++++
|
2021-07-24 01:47:53 +00:00
|
|
|
|
|
|
|
error[E0277]: the size for values of type `A` cannot be known at compilation time
|
|
|
|
--> $DIR/unsized-bound.rs:2:30
|
|
|
|
|
|
|
|
|
LL | impl<A, B> Trait<(A, B)> for (A, B) where A: ?Sized, B: ?Sized, {}
|
|
|
|
| - ^^^^^^ doesn't have a size known at compile-time
|
|
|
|
| |
|
|
|
|
| this type parameter needs to be `std::marker::Sized`
|
|
|
|
|
|
|
|
|
= note: only the last element of a tuple may have a dynamically sized type
|
|
|
|
help: consider removing the `?Sized` bound to make the type parameter `Sized`
|
|
|
|
|
|
2021-06-22 02:07:19 +00:00
|
|
|
LL - impl<A, B> Trait<(A, B)> for (A, B) where A: ?Sized, B: ?Sized, {}
|
|
|
|
LL + impl<A, B> Trait<(A, B)> for (A, B) where B: ?Sized, {}
|
2022-06-08 17:34:57 +00:00
|
|
|
|
|
2021-07-24 01:47:53 +00:00
|
|
|
|
|
|
|
error[E0277]: the size for values of type `C` cannot be known at compilation time
|
2023-01-12 20:15:00 +00:00
|
|
|
--> $DIR/unsized-bound.rs:5:52
|
2021-07-24 01:47:53 +00:00
|
|
|
|
|
|
|
|
LL | impl<A, B: ?Sized, C: ?Sized> Trait<(A, B, C)> for (A, B, C) where A: ?Sized, {}
|
2023-01-12 20:15:00 +00:00
|
|
|
| - ^^^^^^^^^ doesn't have a size known at compile-time
|
2021-07-24 01:47:53 +00:00
|
|
|
| |
|
|
|
|
| this type parameter needs to be `std::marker::Sized`
|
|
|
|
|
|
|
|
|
= note: required because it appears within the type `(A, B, C)`
|
2021-07-31 16:26:55 +00:00
|
|
|
note: required by a bound in `Trait`
|
|
|
|
--> $DIR/unsized-bound.rs:1:13
|
|
|
|
|
|
|
|
|
LL | trait Trait<A> {}
|
|
|
|
| ^ required by this bound in `Trait`
|
2021-07-24 01:47:53 +00:00
|
|
|
help: consider removing the `?Sized` bound to make the type parameter `Sized`
|
|
|
|
|
|
2021-06-22 02:07:19 +00:00
|
|
|
LL - impl<A, B: ?Sized, C: ?Sized> Trait<(A, B, C)> for (A, B, C) where A: ?Sized, {}
|
|
|
|
LL + impl<A, B: ?Sized, C> Trait<(A, B, C)> for (A, B, C) where A: ?Sized, {}
|
2022-06-08 17:34:57 +00:00
|
|
|
|
|
2021-07-24 01:47:53 +00:00
|
|
|
help: consider relaxing the implicit `Sized` restriction
|
|
|
|
|
|
|
|
|
LL | trait Trait<A: ?Sized> {}
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++++++++
|
2021-07-24 01:47:53 +00:00
|
|
|
|
|
|
|
error[E0277]: the size for values of type `A` cannot be known at compilation time
|
|
|
|
--> $DIR/unsized-bound.rs:5:52
|
|
|
|
|
|
|
|
|
LL | impl<A, B: ?Sized, C: ?Sized> Trait<(A, B, C)> for (A, B, C) where A: ?Sized, {}
|
|
|
|
| - ^^^^^^^^^ doesn't have a size known at compile-time
|
|
|
|
| |
|
|
|
|
| this type parameter needs to be `std::marker::Sized`
|
|
|
|
|
|
|
|
|
= note: only the last element of a tuple may have a dynamically sized type
|
|
|
|
help: consider removing the `?Sized` bound to make the type parameter `Sized`
|
|
|
|
|
|
2021-06-22 02:07:19 +00:00
|
|
|
LL - impl<A, B: ?Sized, C: ?Sized> Trait<(A, B, C)> for (A, B, C) where A: ?Sized, {}
|
|
|
|
LL + impl<A, B: ?Sized, C: ?Sized> Trait<(A, B, C)> for (A, B, C) {}
|
2022-06-08 17:34:57 +00:00
|
|
|
|
|
2021-07-24 01:47:53 +00:00
|
|
|
|
|
|
|
error[E0277]: the size for values of type `B` cannot be known at compilation time
|
|
|
|
--> $DIR/unsized-bound.rs:5:52
|
|
|
|
|
|
|
|
|
LL | impl<A, B: ?Sized, C: ?Sized> Trait<(A, B, C)> for (A, B, C) where A: ?Sized, {}
|
|
|
|
| - ^^^^^^^^^ doesn't have a size known at compile-time
|
|
|
|
| |
|
|
|
|
| this type parameter needs to be `std::marker::Sized`
|
|
|
|
|
|
|
|
|
= note: only the last element of a tuple may have a dynamically sized type
|
|
|
|
help: consider removing the `?Sized` bound to make the type parameter `Sized`
|
|
|
|
|
|
2021-06-22 02:07:19 +00:00
|
|
|
LL - impl<A, B: ?Sized, C: ?Sized> Trait<(A, B, C)> for (A, B, C) where A: ?Sized, {}
|
|
|
|
LL + impl<A, B, C: ?Sized> Trait<(A, B, C)> for (A, B, C) where A: ?Sized, {}
|
2022-06-08 17:34:57 +00:00
|
|
|
|
|
2021-07-24 01:47:53 +00:00
|
|
|
|
|
|
|
error[E0277]: the size for values of type `B` cannot be known at compilation time
|
2023-01-12 20:15:00 +00:00
|
|
|
--> $DIR/unsized-bound.rs:10:47
|
2021-07-24 01:47:53 +00:00
|
|
|
|
|
|
|
|
LL | impl<A: ?Sized, B: ?Sized> Trait2<(A, B)> for (A, B) {}
|
2023-01-12 20:15:00 +00:00
|
|
|
| - ^^^^^^ doesn't have a size known at compile-time
|
2021-07-24 01:47:53 +00:00
|
|
|
| |
|
|
|
|
| this type parameter needs to be `std::marker::Sized`
|
|
|
|
|
|
|
|
|
= note: required because it appears within the type `(A, B)`
|
2021-07-31 16:26:55 +00:00
|
|
|
note: required by a bound in `Trait2`
|
|
|
|
--> $DIR/unsized-bound.rs:9:14
|
|
|
|
|
|
|
|
|
LL | trait Trait2<A> {}
|
|
|
|
| ^ required by this bound in `Trait2`
|
2021-07-24 01:47:53 +00:00
|
|
|
help: consider removing the `?Sized` bound to make the type parameter `Sized`
|
|
|
|
|
|
2021-06-22 02:07:19 +00:00
|
|
|
LL - impl<A: ?Sized, B: ?Sized> Trait2<(A, B)> for (A, B) {}
|
|
|
|
LL + impl<A: ?Sized, B> Trait2<(A, B)> for (A, B) {}
|
2022-06-08 17:34:57 +00:00
|
|
|
|
|
2021-07-24 01:47:53 +00:00
|
|
|
help: consider relaxing the implicit `Sized` restriction
|
|
|
|
|
|
|
|
|
LL | trait Trait2<A: ?Sized> {}
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++++++++
|
2021-07-24 01:47:53 +00:00
|
|
|
|
|
|
|
error[E0277]: the size for values of type `A` cannot be known at compilation time
|
|
|
|
--> $DIR/unsized-bound.rs:10:47
|
|
|
|
|
|
|
|
|
LL | impl<A: ?Sized, B: ?Sized> Trait2<(A, B)> for (A, B) {}
|
|
|
|
| - ^^^^^^ doesn't have a size known at compile-time
|
|
|
|
| |
|
|
|
|
| this type parameter needs to be `std::marker::Sized`
|
|
|
|
|
|
|
|
|
= note: only the last element of a tuple may have a dynamically sized type
|
|
|
|
help: consider removing the `?Sized` bound to make the type parameter `Sized`
|
|
|
|
|
|
2021-06-22 02:07:19 +00:00
|
|
|
LL - impl<A: ?Sized, B: ?Sized> Trait2<(A, B)> for (A, B) {}
|
|
|
|
LL + impl<A, B: ?Sized> Trait2<(A, B)> for (A, B) {}
|
2022-06-08 17:34:57 +00:00
|
|
|
|
|
2021-07-24 01:47:53 +00:00
|
|
|
|
|
|
|
error[E0277]: the size for values of type `A` cannot be known at compilation time
|
2023-01-12 20:15:00 +00:00
|
|
|
--> $DIR/unsized-bound.rs:14:23
|
2021-07-24 01:47:53 +00:00
|
|
|
|
|
|
|
|
LL | impl<A> Trait3<A> for A where A: ?Sized {}
|
2023-01-12 20:15:00 +00:00
|
|
|
| - ^ doesn't have a size known at compile-time
|
2021-07-24 01:47:53 +00:00
|
|
|
| |
|
|
|
|
| this type parameter needs to be `std::marker::Sized`
|
|
|
|
|
|
2021-07-31 16:26:55 +00:00
|
|
|
note: required by a bound in `Trait3`
|
|
|
|
--> $DIR/unsized-bound.rs:13:14
|
|
|
|
|
|
|
|
|
LL | trait Trait3<A> {}
|
|
|
|
| ^ required by this bound in `Trait3`
|
2021-07-24 01:47:53 +00:00
|
|
|
help: consider removing the `?Sized` bound to make the type parameter `Sized`
|
|
|
|
|
|
2021-06-22 02:07:19 +00:00
|
|
|
LL - impl<A> Trait3<A> for A where A: ?Sized {}
|
|
|
|
LL + impl<A> Trait3<A> for A {}
|
2022-06-08 17:34:57 +00:00
|
|
|
|
|
2021-07-24 01:47:53 +00:00
|
|
|
help: consider relaxing the implicit `Sized` restriction
|
|
|
|
|
|
|
|
|
LL | trait Trait3<A: ?Sized> {}
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++++++++
|
2021-07-24 01:47:53 +00:00
|
|
|
|
|
|
|
error[E0277]: the size for values of type `A` cannot be known at compilation time
|
2023-01-12 20:15:00 +00:00
|
|
|
--> $DIR/unsized-bound.rs:17:31
|
2021-07-24 01:47:53 +00:00
|
|
|
|
|
|
|
|
LL | impl<A: ?Sized> Trait4<A> for A {}
|
2023-01-12 20:15:00 +00:00
|
|
|
| - ^ doesn't have a size known at compile-time
|
2021-07-24 01:47:53 +00:00
|
|
|
| |
|
|
|
|
| this type parameter needs to be `std::marker::Sized`
|
|
|
|
|
|
2021-07-31 16:26:55 +00:00
|
|
|
note: required by a bound in `Trait4`
|
|
|
|
--> $DIR/unsized-bound.rs:16:14
|
|
|
|
|
|
|
|
|
LL | trait Trait4<A> {}
|
|
|
|
| ^ required by this bound in `Trait4`
|
2021-07-24 01:47:53 +00:00
|
|
|
help: consider removing the `?Sized` bound to make the type parameter `Sized`
|
|
|
|
|
|
2021-06-22 02:07:19 +00:00
|
|
|
LL - impl<A: ?Sized> Trait4<A> for A {}
|
|
|
|
LL + impl<A> Trait4<A> for A {}
|
2022-06-08 17:34:57 +00:00
|
|
|
|
|
2021-07-24 01:47:53 +00:00
|
|
|
help: consider relaxing the implicit `Sized` restriction
|
|
|
|
|
|
|
|
|
LL | trait Trait4<A: ?Sized> {}
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++++++++
|
2021-07-24 01:47:53 +00:00
|
|
|
|
|
|
|
error[E0277]: the size for values of type `X` cannot be known at compilation time
|
2023-01-12 20:15:00 +00:00
|
|
|
--> $DIR/unsized-bound.rs:20:29
|
2021-07-24 01:47:53 +00:00
|
|
|
|
|
|
|
|
LL | impl<X, Y> Trait5<X, Y> for X where X: ?Sized {}
|
2023-01-12 20:15:00 +00:00
|
|
|
| - ^ doesn't have a size known at compile-time
|
2021-07-24 01:47:53 +00:00
|
|
|
| |
|
|
|
|
| this type parameter needs to be `std::marker::Sized`
|
|
|
|
|
|
2021-07-31 16:26:55 +00:00
|
|
|
note: required by a bound in `Trait5`
|
|
|
|
--> $DIR/unsized-bound.rs:19:14
|
|
|
|
|
|
|
|
|
LL | trait Trait5<A, B> {}
|
|
|
|
| ^ required by this bound in `Trait5`
|
2021-07-24 01:47:53 +00:00
|
|
|
help: consider removing the `?Sized` bound to make the type parameter `Sized`
|
|
|
|
|
|
2021-06-22 02:07:19 +00:00
|
|
|
LL - impl<X, Y> Trait5<X, Y> for X where X: ?Sized {}
|
|
|
|
LL + impl<X, Y> Trait5<X, Y> for X {}
|
2022-06-08 17:34:57 +00:00
|
|
|
|
|
2021-07-24 01:47:53 +00:00
|
|
|
help: consider relaxing the implicit `Sized` restriction
|
|
|
|
|
|
|
|
|
LL | trait Trait5<A: ?Sized, B> {}
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++++++++
|
2021-07-24 01:47:53 +00:00
|
|
|
|
|
|
|
error[E0277]: the size for values of type `X` cannot be known at compilation time
|
2023-01-12 20:15:00 +00:00
|
|
|
--> $DIR/unsized-bound.rs:23:37
|
2021-07-24 01:47:53 +00:00
|
|
|
|
|
|
|
|
LL | impl<X: ?Sized, Y> Trait6<X, Y> for X {}
|
2023-01-12 20:15:00 +00:00
|
|
|
| - ^ doesn't have a size known at compile-time
|
2021-07-24 01:47:53 +00:00
|
|
|
| |
|
|
|
|
| this type parameter needs to be `std::marker::Sized`
|
|
|
|
|
|
2021-07-31 16:26:55 +00:00
|
|
|
note: required by a bound in `Trait6`
|
|
|
|
--> $DIR/unsized-bound.rs:22:14
|
|
|
|
|
|
|
|
|
LL | trait Trait6<A, B> {}
|
|
|
|
| ^ required by this bound in `Trait6`
|
2021-07-24 01:47:53 +00:00
|
|
|
help: consider removing the `?Sized` bound to make the type parameter `Sized`
|
|
|
|
|
|
2021-06-22 02:07:19 +00:00
|
|
|
LL - impl<X: ?Sized, Y> Trait6<X, Y> for X {}
|
|
|
|
LL + impl<X, Y> Trait6<X, Y> for X {}
|
2022-06-08 17:34:57 +00:00
|
|
|
|
|
2021-07-24 01:47:53 +00:00
|
|
|
help: consider relaxing the implicit `Sized` restriction
|
|
|
|
|
|
|
|
|
LL | trait Trait6<A: ?Sized, B> {}
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++++++++
|
2021-07-24 01:47:53 +00:00
|
|
|
|
|
|
|
error[E0277]: the size for values of type `Y` cannot be known at compilation time
|
2023-01-12 20:28:57 +00:00
|
|
|
--> $DIR/unsized-bound.rs:26:12
|
2021-07-24 01:47:53 +00:00
|
|
|
|
|
|
|
|
LL | impl<X, Y> Trait7<X, Y> for X where Y: ?Sized {}
|
2023-01-12 20:28:57 +00:00
|
|
|
| - ^^^^^^^^^^^^ doesn't have a size known at compile-time
|
2021-07-24 01:47:53 +00:00
|
|
|
| |
|
|
|
|
| this type parameter needs to be `std::marker::Sized`
|
|
|
|
|
|
2021-07-31 16:26:55 +00:00
|
|
|
note: required by a bound in `Trait7`
|
|
|
|
--> $DIR/unsized-bound.rs:25:17
|
|
|
|
|
|
|
|
|
LL | trait Trait7<A, B> {}
|
|
|
|
| ^ required by this bound in `Trait7`
|
2021-07-24 01:47:53 +00:00
|
|
|
help: consider removing the `?Sized` bound to make the type parameter `Sized`
|
|
|
|
|
|
2021-06-22 02:07:19 +00:00
|
|
|
LL - impl<X, Y> Trait7<X, Y> for X where Y: ?Sized {}
|
|
|
|
LL + impl<X, Y> Trait7<X, Y> for X {}
|
2022-06-08 17:34:57 +00:00
|
|
|
|
|
2021-07-24 01:47:53 +00:00
|
|
|
help: consider relaxing the implicit `Sized` restriction
|
|
|
|
|
|
|
|
|
LL | trait Trait7<A, B: ?Sized> {}
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++++++++
|
2021-07-24 01:47:53 +00:00
|
|
|
|
|
|
|
error[E0277]: the size for values of type `Y` cannot be known at compilation time
|
2023-01-12 20:28:57 +00:00
|
|
|
--> $DIR/unsized-bound.rs:29:20
|
2021-07-24 01:47:53 +00:00
|
|
|
|
|
|
|
|
LL | impl<X, Y: ?Sized> Trait8<X, Y> for X {}
|
2023-01-12 20:28:57 +00:00
|
|
|
| - ^^^^^^^^^^^^ doesn't have a size known at compile-time
|
2021-07-24 01:47:53 +00:00
|
|
|
| |
|
|
|
|
| this type parameter needs to be `std::marker::Sized`
|
|
|
|
|
|
2021-07-31 16:26:55 +00:00
|
|
|
note: required by a bound in `Trait8`
|
|
|
|
--> $DIR/unsized-bound.rs:28:17
|
|
|
|
|
|
|
|
|
LL | trait Trait8<A, B> {}
|
|
|
|
| ^ required by this bound in `Trait8`
|
2021-07-24 01:47:53 +00:00
|
|
|
help: consider removing the `?Sized` bound to make the type parameter `Sized`
|
|
|
|
|
|
2021-06-22 02:07:19 +00:00
|
|
|
LL - impl<X, Y: ?Sized> Trait8<X, Y> for X {}
|
|
|
|
LL + impl<X, Y> Trait8<X, Y> for X {}
|
2022-06-08 17:34:57 +00:00
|
|
|
|
|
2021-07-24 01:47:53 +00:00
|
|
|
help: consider relaxing the implicit `Sized` restriction
|
|
|
|
|
|
|
|
|
LL | trait Trait8<A, B: ?Sized> {}
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++++++++
|
2021-07-24 01:47:53 +00:00
|
|
|
|
|
|
|
error: aborting due to 13 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|