fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: the size for values of type `B` cannot be known at compilation time 2 --> $DIR/unsized-bound.rs:2:30 3 | 4LL | impl<A, B> Trait<(A, B)> for (A, B) where A: ?Sized, B: ?Sized, {} 5 | - ^^^^^^ doesn't have a size known at compile-time 6 | | 7 | this type parameter needs to be `Sized` 8 | 9 = note: required because it appears within the type `(A, B)` 10note: required by a bound in `Trait` 11 --> $DIR/unsized-bound.rs:1:13 12 | 13LL | trait Trait<A> {} 14 | ^ required by this bound in `Trait` 15help: consider removing the `?Sized` bound to make the type parameter `Sized` 16 | 17LL - impl<A, B> Trait<(A, B)> for (A, B) where A: ?Sized, B: ?Sized, {} 18LL + impl<A, B> Trait<(A, B)> for (A, B) where A: ?Sized, {} 19 | 20help: consider relaxing the implicit `Sized` restriction 21 | 22LL | trait Trait<A: ?Sized> {} 23 | ++++++++ 24 25error[E0277]: the size for values of type `A` cannot be known at compilation time 26 --> $DIR/unsized-bound.rs:2:30 27 | 28LL | impl<A, B> Trait<(A, B)> for (A, B) where A: ?Sized, B: ?Sized, {} 29 | - ^^^^^^ doesn't have a size known at compile-time 30 | | 31 | this type parameter needs to be `Sized` 32 | 33 = note: only the last element of a tuple may have a dynamically sized type 34help: consider removing the `?Sized` bound to make the type parameter `Sized` 35 | 36LL - impl<A, B> Trait<(A, B)> for (A, B) where A: ?Sized, B: ?Sized, {} 37LL + impl<A, B> Trait<(A, B)> for (A, B) where B: ?Sized, {} 38 | 39 40error[E0277]: the size for values of type `C` cannot be known at compilation time 41 --> $DIR/unsized-bound.rs:5:52 42 | 43LL | impl<A, B: ?Sized, C: ?Sized> Trait<(A, B, C)> for (A, B, C) where A: ?Sized, {} 44 | - ^^^^^^^^^ doesn't have a size known at compile-time 45 | | 46 | this type parameter needs to be `Sized` 47 | 48 = note: required because it appears within the type `(A, B, C)` 49note: required by a bound in `Trait` 50 --> $DIR/unsized-bound.rs:1:13 51 | 52LL | trait Trait<A> {} 53 | ^ required by this bound in `Trait` 54help: consider removing the `?Sized` bound to make the type parameter `Sized` 55 | 56LL - impl<A, B: ?Sized, C: ?Sized> Trait<(A, B, C)> for (A, B, C) where A: ?Sized, {} 57LL + impl<A, B: ?Sized, C> Trait<(A, B, C)> for (A, B, C) where A: ?Sized, {} 58 | 59help: consider relaxing the implicit `Sized` restriction 60 | 61LL | trait Trait<A: ?Sized> {} 62 | ++++++++ 63 64error[E0277]: the size for values of type `A` cannot be known at compilation time 65 --> $DIR/unsized-bound.rs:5:52 66 | 67LL | impl<A, B: ?Sized, C: ?Sized> Trait<(A, B, C)> for (A, B, C) where A: ?Sized, {} 68 | - this type parameter needs to be `Sized` ^^^^^^^^^ doesn't have a size known at compile-time 69 | 70 = note: only the last element of a tuple may have a dynamically sized type 71help: consider removing the `?Sized` bound to make the type parameter `Sized` 72 | 73LL - impl<A, B: ?Sized, C: ?Sized> Trait<(A, B, C)> for (A, B, C) where A: ?Sized, {} 74LL + impl<A, B: ?Sized, C: ?Sized> Trait<(A, B, C)> for (A, B, C) {} 75 | 76 77error[E0277]: the size for values of type `B` cannot be known at compilation time 78 --> $DIR/unsized-bound.rs:5:52 79 | 80LL | impl<A, B: ?Sized, C: ?Sized> Trait<(A, B, C)> for (A, B, C) where A: ?Sized, {} 81 | - this type parameter needs to be `Sized` ^^^^^^^^^ doesn't have a size known at compile-time 82 | 83 = note: only the last element of a tuple may have a dynamically sized type 84help: consider removing the `?Sized` bound to make the type parameter `Sized` 85 | 86LL - impl<A, B: ?Sized, C: ?Sized> Trait<(A, B, C)> for (A, B, C) where A: ?Sized, {} 87LL + impl<A, B, C: ?Sized> Trait<(A, B, C)> for (A, B, C) where A: ?Sized, {} 88 | 89 90error[E0277]: the size for values of type `B` cannot be known at compilation time 91 --> $DIR/unsized-bound.rs:10:47 92 | 93LL | impl<A: ?Sized, B: ?Sized> Trait2<(A, B)> for (A, B) {} 94 | - ^^^^^^ doesn't have a size known at compile-time 95 | | 96 | this type parameter needs to be `Sized` 97 | 98 = note: required because it appears within the type `(A, B)` 99note: required by a bound in `Trait2` 100 --> $DIR/unsized-bound.rs:9:14 101 | 102LL | trait Trait2<A> {} 103 | ^ required by this bound in `Trait2` 104help: consider removing the `?Sized` bound to make the type parameter `Sized` 105 | 106LL - impl<A: ?Sized, B: ?Sized> Trait2<(A, B)> for (A, B) {} 107LL + impl<A: ?Sized, B> Trait2<(A, B)> for (A, B) {} 108 | 109help: consider relaxing the implicit `Sized` restriction 110 | 111LL | trait Trait2<A: ?Sized> {} 112 | ++++++++ 113 114error[E0277]: the size for values of type `A` cannot be known at compilation time 115 --> $DIR/unsized-bound.rs:10:47 116 | 117LL | impl<A: ?Sized, B: ?Sized> Trait2<(A, B)> for (A, B) {} 118 | - ^^^^^^ doesn't have a size known at compile-time 119 | | 120 | this type parameter needs to be `Sized` 121 | 122 = note: only the last element of a tuple may have a dynamically sized type 123help: consider removing the `?Sized` bound to make the type parameter `Sized` 124 | 125LL - impl<A: ?Sized, B: ?Sized> Trait2<(A, B)> for (A, B) {} 126LL + impl<A, B: ?Sized> Trait2<(A, B)> for (A, B) {} 127 | 128 129error[E0277]: the size for values of type `A` cannot be known at compilation time 130 --> $DIR/unsized-bound.rs:14:23 131 | 132LL | impl<A> Trait3<A> for A where A: ?Sized {} 133 | - ^ doesn't have a size known at compile-time 134 | | 135 | this type parameter needs to be `Sized` 136 | 137note: required by a bound in `Trait3` 138 --> $DIR/unsized-bound.rs:13:14 139 | 140LL | trait Trait3<A> {} 141 | ^ required by this bound in `Trait3` 142help: consider removing the `?Sized` bound to make the type parameter `Sized` 143 | 144LL - impl<A> Trait3<A> for A where A: ?Sized {} 145LL + impl<A> Trait3<A> for A {} 146 | 147help: consider relaxing the implicit `Sized` restriction 148 | 149LL | trait Trait3<A: ?Sized> {} 150 | ++++++++ 151 152error[E0277]: the size for values of type `A` cannot be known at compilation time 153 --> $DIR/unsized-bound.rs:17:31 154 | 155LL | impl<A: ?Sized> Trait4<A> for A {} 156 | - ^ doesn't have a size known at compile-time 157 | | 158 | this type parameter needs to be `Sized` 159 | 160note: required by a bound in `Trait4` 161 --> $DIR/unsized-bound.rs:16:14 162 | 163LL | trait Trait4<A> {} 164 | ^ required by this bound in `Trait4` 165help: consider removing the `?Sized` bound to make the type parameter `Sized` 166 | 167LL - impl<A: ?Sized> Trait4<A> for A {} 168LL + impl<A> Trait4<A> for A {} 169 | 170help: consider relaxing the implicit `Sized` restriction 171 | 172LL | trait Trait4<A: ?Sized> {} 173 | ++++++++ 174 175error[E0277]: the size for values of type `X` cannot be known at compilation time 176 --> $DIR/unsized-bound.rs:20:29 177 | 178LL | impl<X, Y> Trait5<X, Y> for X where X: ?Sized {} 179 | - ^ doesn't have a size known at compile-time 180 | | 181 | this type parameter needs to be `Sized` 182 | 183note: required by a bound in `Trait5` 184 --> $DIR/unsized-bound.rs:19:14 185 | 186LL | trait Trait5<A, B> {} 187 | ^ required by this bound in `Trait5` 188help: consider removing the `?Sized` bound to make the type parameter `Sized` 189 | 190LL - impl<X, Y> Trait5<X, Y> for X where X: ?Sized {} 191LL + impl<X, Y> Trait5<X, Y> for X {} 192 | 193help: consider relaxing the implicit `Sized` restriction 194 | 195LL | trait Trait5<A: ?Sized, B> {} 196 | ++++++++ 197 198error[E0277]: the size for values of type `X` cannot be known at compilation time 199 --> $DIR/unsized-bound.rs:23:37 200 | 201LL | impl<X: ?Sized, Y> Trait6<X, Y> for X {} 202 | - ^ doesn't have a size known at compile-time 203 | | 204 | this type parameter needs to be `Sized` 205 | 206note: required by a bound in `Trait6` 207 --> $DIR/unsized-bound.rs:22:14 208 | 209LL | trait Trait6<A, B> {} 210 | ^ required by this bound in `Trait6` 211help: consider removing the `?Sized` bound to make the type parameter `Sized` 212 | 213LL - impl<X: ?Sized, Y> Trait6<X, Y> for X {} 214LL + impl<X, Y> Trait6<X, Y> for X {} 215 | 216help: consider relaxing the implicit `Sized` restriction 217 | 218LL | trait Trait6<A: ?Sized, B> {} 219 | ++++++++ 220 221error[E0277]: the size for values of type `Y` cannot be known at compilation time 222 --> $DIR/unsized-bound.rs:26:12 223 | 224LL | impl<X, Y> Trait7<X, Y> for X where Y: ?Sized {} 225 | - ^^^^^^^^^^^^ doesn't have a size known at compile-time 226 | | 227 | this type parameter needs to be `Sized` 228 | 229note: required by a bound in `Trait7` 230 --> $DIR/unsized-bound.rs:25:17 231 | 232LL | trait Trait7<A, B> {} 233 | ^ required by this bound in `Trait7` 234help: consider removing the `?Sized` bound to make the type parameter `Sized` 235 | 236LL - impl<X, Y> Trait7<X, Y> for X where Y: ?Sized {} 237LL + impl<X, Y> Trait7<X, Y> for X {} 238 | 239help: consider relaxing the implicit `Sized` restriction 240 | 241LL | trait Trait7<A, B: ?Sized> {} 242 | ++++++++ 243 244error[E0277]: the size for values of type `Y` cannot be known at compilation time 245 --> $DIR/unsized-bound.rs:29:20 246 | 247LL | impl<X, Y: ?Sized> Trait8<X, Y> for X {} 248 | - ^^^^^^^^^^^^ doesn't have a size known at compile-time 249 | | 250 | this type parameter needs to be `Sized` 251 | 252note: required by a bound in `Trait8` 253 --> $DIR/unsized-bound.rs:28:17 254 | 255LL | trait Trait8<A, B> {} 256 | ^ required by this bound in `Trait8` 257help: consider removing the `?Sized` bound to make the type parameter `Sized` 258 | 259LL - impl<X, Y: ?Sized> Trait8<X, Y> for X {} 260LL + impl<X, Y> Trait8<X, Y> for X {} 261 | 262help: consider relaxing the implicit `Sized` restriction 263 | 264LL | trait Trait8<A, B: ?Sized> {} 265 | ++++++++ 266 267error: aborting due to 13 previous errors 268 269For more information about this error, try `rustc --explain E0277`.