fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
11.0 KiB211 linesraw
1error[E0277]: the size for values of type `W` cannot be known at compilation time
2  --> $DIR/unsized-enum2.rs:23:8
3   |
4LL |     VA(W),
5   |        ^ doesn't have a size known at compile-time
6   |
7   = help: the trait `std::marker::Sized` is not implemented for `W`
8   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
9   = help: consider adding a `where W: std::marker::Sized` bound
10   = note: no field of an enum variant may have a dynamically sized type
11
12error[E0277]: the size for values of type `X` cannot be known at compilation time
13  --> $DIR/unsized-enum2.rs:25:8
14   |
15LL |     VB{x: X},
16   |        ^^^^ doesn't have a size known at compile-time
17   |
18   = help: the trait `std::marker::Sized` is not implemented for `X`
19   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
20   = help: consider adding a `where X: std::marker::Sized` bound
21   = note: no field of an enum variant may have a dynamically sized type
22
23error[E0277]: the size for values of type `Y` cannot be known at compilation time
24  --> $DIR/unsized-enum2.rs:27:15
25   |
26LL |     VC(isize, Y),
27   |               ^ doesn't have a size known at compile-time
28   |
29   = help: the trait `std::marker::Sized` is not implemented for `Y`
30   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
31   = help: consider adding a `where Y: std::marker::Sized` bound
32   = note: no field of an enum variant may have a dynamically sized type
33
34error[E0277]: the size for values of type `Z` cannot be known at compilation time
35  --> $DIR/unsized-enum2.rs:29:18
36   |
37LL |     VD{u: isize, x: Z},
38   |                  ^^^^ doesn't have a size known at compile-time
39   |
40   = help: the trait `std::marker::Sized` is not implemented for `Z`
41   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
42   = help: consider adding a `where Z: std::marker::Sized` bound
43   = note: no field of an enum variant may have a dynamically sized type
44
45error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
46  --> $DIR/unsized-enum2.rs:33:8
47   |
48LL |     VE([u8]),
49   |        ^^^^ doesn't have a size known at compile-time
50   |
51   = help: the trait `std::marker::Sized` is not implemented for `[u8]`
52   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
53   = note: no field of an enum variant may have a dynamically sized type
54
55error[E0277]: the size for values of type `str` cannot be known at compilation time
56  --> $DIR/unsized-enum2.rs:35:8
57   |
58LL |     VF{x: str},
59   |        ^^^^^^ doesn't have a size known at compile-time
60   |
61   = help: the trait `std::marker::Sized` is not implemented for `str`
62   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
63   = note: no field of an enum variant may have a dynamically sized type
64
65error[E0277]: the size for values of type `[f32]` cannot be known at compilation time
66  --> $DIR/unsized-enum2.rs:37:15
67   |
68LL |     VG(isize, [f32]),
69   |               ^^^^^ doesn't have a size known at compile-time
70   |
71   = help: the trait `std::marker::Sized` is not implemented for `[f32]`
72   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
73   = note: no field of an enum variant may have a dynamically sized type
74
75error[E0277]: the size for values of type `[u32]` cannot be known at compilation time
76  --> $DIR/unsized-enum2.rs:39:18
77   |
78LL |     VH{u: isize, x: [u32]},
79   |                  ^^^^^^^^ doesn't have a size known at compile-time
80   |
81   = help: the trait `std::marker::Sized` is not implemented for `[u32]`
82   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
83   = note: no field of an enum variant may have a dynamically sized type
84
85error[E0277]: the size for values of type `(dyn Foo + 'static)` cannot be known at compilation time
86  --> $DIR/unsized-enum2.rs:53:8
87   |
88LL |     VM(dyn Foo),
89   |        ^^^^^^^ doesn't have a size known at compile-time
90   |
91   = help: the trait `std::marker::Sized` is not implemented for `(dyn Foo + 'static)`
92   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
93   = note: no field of an enum variant may have a dynamically sized type
94
95error[E0277]: the size for values of type `(dyn Bar + 'static)` cannot be known at compilation time
96  --> $DIR/unsized-enum2.rs:55:8
97   |
98LL |     VN{x: dyn Bar},
99   |        ^^^^^^^^^^ doesn't have a size known at compile-time
100   |
101   = help: the trait `std::marker::Sized` is not implemented for `(dyn Bar + 'static)`
102   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
103   = note: no field of an enum variant may have a dynamically sized type
104
105error[E0277]: the size for values of type `(dyn FooBar + 'static)` cannot be known at compilation time
106  --> $DIR/unsized-enum2.rs:57:15
107   |
108LL |     VO(isize, dyn FooBar),
109   |               ^^^^^^^^^^ doesn't have a size known at compile-time
110   |
111   = help: the trait `std::marker::Sized` is not implemented for `(dyn FooBar + 'static)`
112   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
113   = note: no field of an enum variant may have a dynamically sized type
114
115error[E0277]: the size for values of type `(dyn BarFoo + 'static)` cannot be known at compilation time
116  --> $DIR/unsized-enum2.rs:59:18
117   |
118LL |     VP{u: isize, x: dyn BarFoo},
119   |                  ^^^^^^^^^^^^^ doesn't have a size known at compile-time
120   |
121   = help: the trait `std::marker::Sized` is not implemented for `(dyn BarFoo + 'static)`
122   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
123   = note: no field of an enum variant may have a dynamically sized type
124
125error[E0277]: the size for values of type `[i8]` cannot be known at compilation time
126  --> $DIR/unsized-enum2.rs:63:8
127   |
128LL |     VQ(<&'static [i8] as Deref>::Target),
129   |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
130   |
131   = help: the trait `std::marker::Sized` is not implemented for `[i8]`
132   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
133   = note: no field of an enum variant may have a dynamically sized type
134
135error[E0277]: the size for values of type `[char]` cannot be known at compilation time
136  --> $DIR/unsized-enum2.rs:65:8
137   |
138LL |     VR{x: <&'static [char] as Deref>::Target},
139   |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
140   |
141   = help: the trait `std::marker::Sized` is not implemented for `[char]`
142   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
143   = note: no field of an enum variant may have a dynamically sized type
144
145error[E0277]: the size for values of type `[f64]` cannot be known at compilation time
146  --> $DIR/unsized-enum2.rs:67:15
147   |
148LL |     VS(isize, <&'static [f64] as Deref>::Target),
149   |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
150   |
151   = help: the trait `std::marker::Sized` is not implemented for `[f64]`
152   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
153   = note: no field of an enum variant may have a dynamically sized type
154
155error[E0277]: the size for values of type `[i32]` cannot be known at compilation time
156  --> $DIR/unsized-enum2.rs:69:18
157   |
158LL |     VT{u: isize, x: <&'static [i32] as Deref>::Target},
159   |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
160   |
161   = help: the trait `std::marker::Sized` is not implemented for `[i32]`
162   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
163   = note: no field of an enum variant may have a dynamically sized type
164
165error[E0277]: the size for values of type `(dyn PathHelper1 + 'static)` cannot be known at compilation time
166  --> $DIR/unsized-enum2.rs:43:8
167   |
168LL |     VI(Path1),
169   |        ^^^^^ doesn't have a size known at compile-time
170   |
171   = help: within `Path1`, the trait `std::marker::Sized` is not implemented for `(dyn PathHelper1 + 'static)`
172   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
173   = note: required because it appears within the type `Path1`
174   = note: no field of an enum variant may have a dynamically sized type
175
176error[E0277]: the size for values of type `(dyn PathHelper2 + 'static)` cannot be known at compilation time
177  --> $DIR/unsized-enum2.rs:45:8
178   |
179LL |     VJ{x: Path2},
180   |        ^^^^^^^^ doesn't have a size known at compile-time
181   |
182   = help: within `Path2`, the trait `std::marker::Sized` is not implemented for `(dyn PathHelper2 + 'static)`
183   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
184   = note: required because it appears within the type `Path2`
185   = note: no field of an enum variant may have a dynamically sized type
186
187error[E0277]: the size for values of type `(dyn PathHelper3 + 'static)` cannot be known at compilation time
188  --> $DIR/unsized-enum2.rs:47:15
189   |
190LL |     VK(isize, Path3),
191   |               ^^^^^ doesn't have a size known at compile-time
192   |
193   = help: within `Path3`, the trait `std::marker::Sized` is not implemented for `(dyn PathHelper3 + 'static)`
194   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
195   = note: required because it appears within the type `Path3`
196   = note: no field of an enum variant may have a dynamically sized type
197
198error[E0277]: the size for values of type `(dyn PathHelper4 + 'static)` cannot be known at compilation time
199  --> $DIR/unsized-enum2.rs:49:18
200   |
201LL |     VL{u: isize, x: Path4},
202   |                  ^^^^^^^^ doesn't have a size known at compile-time
203   |
204   = help: within `Path4`, the trait `std::marker::Sized` is not implemented for `(dyn PathHelper4 + 'static)`
205   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
206   = note: required because it appears within the type `Path4`
207   = note: no field of an enum variant may have a dynamically sized type
208
209error: aborting due to 20 previous errors
210
211For more information about this error, try `rustc --explain E0277`.