fork/rust

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

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

1.39.0
7.7 KiB156 linesraw
1error[E0277]: the size for values of type `Y` cannot be known at compilation time
2  --> $DIR/unsized6.rs:9:9
3   |
4LL |     let y: Y;
5   |         ^ doesn't have a size known at compile-time
6   |
7   = help: the trait `std::marker::Sized` is not implemented for `Y`
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 Y: std::marker::Sized` bound
10   = note: all local variables must have a statically known size
11   = help: unsized locals are gated as an unstable feature
12
13error[E0277]: the size for values of type `X` cannot be known at compilation time
14  --> $DIR/unsized6.rs:7:12
15   |
16LL |     let _: (isize, (X, isize));
17   |            ^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
18   |
19   = help: the trait `std::marker::Sized` is not implemented for `X`
20   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
21   = help: consider adding a `where X: std::marker::Sized` bound
22   = note: only the last element of a tuple may have a dynamically sized type
23
24error[E0277]: the size for values of type `Z` cannot be known at compilation time
25  --> $DIR/unsized6.rs:11:12
26   |
27LL |     let y: (isize, (Z, usize));
28   |            ^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
29   |
30   = help: the trait `std::marker::Sized` is not implemented for `Z`
31   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
32   = help: consider adding a `where Z: std::marker::Sized` bound
33   = note: only the last element of a tuple may have a dynamically sized type
34
35error[E0277]: the size for values of type `X` cannot be known at compilation time
36  --> $DIR/unsized6.rs:15:9
37   |
38LL |     let y: X;
39   |         ^ doesn't have a size known at compile-time
40   |
41   = help: the trait `std::marker::Sized` is not implemented for `X`
42   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
43   = help: consider adding a `where X: std::marker::Sized` bound
44   = note: all local variables must have a statically known size
45   = help: unsized locals are gated as an unstable feature
46
47error[E0277]: the size for values of type `Y` cannot be known at compilation time
48  --> $DIR/unsized6.rs:17:12
49   |
50LL |     let y: (isize, (Y, isize));
51   |            ^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
52   |
53   = help: the trait `std::marker::Sized` is not implemented for `Y`
54   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
55   = help: consider adding a `where Y: std::marker::Sized` bound
56   = note: only the last element of a tuple may have a dynamically sized type
57
58error[E0277]: the size for values of type `X` cannot be known at compilation time
59  --> $DIR/unsized6.rs:22:9
60   |
61LL |     let y: X = *x1;
62   |         ^ doesn't have a size known at compile-time
63   |
64   = help: the trait `std::marker::Sized` is not implemented for `X`
65   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
66   = help: consider adding a `where X: std::marker::Sized` bound
67   = note: all local variables must have a statically known size
68   = help: unsized locals are gated as an unstable feature
69
70error[E0277]: the size for values of type `X` cannot be known at compilation time
71  --> $DIR/unsized6.rs:24:9
72   |
73LL |     let y = *x2;
74   |         ^ doesn't have a size known at compile-time
75   |
76   = help: the trait `std::marker::Sized` is not implemented for `X`
77   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
78   = help: consider adding a `where X: std::marker::Sized` bound
79   = note: all local variables must have a statically known size
80   = help: unsized locals are gated as an unstable feature
81
82error[E0277]: the size for values of type `X` cannot be known at compilation time
83  --> $DIR/unsized6.rs:26:10
84   |
85LL |     let (y, z) = (*x3, 4);
86   |          ^ doesn't have a size known at compile-time
87   |
88   = help: the trait `std::marker::Sized` is not implemented for `X`
89   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
90   = help: consider adding a `where X: std::marker::Sized` bound
91   = note: all local variables must have a statically known size
92   = help: unsized locals are gated as an unstable feature
93
94error[E0277]: the size for values of type `X` cannot be known at compilation time
95  --> $DIR/unsized6.rs:30:9
96   |
97LL |     let y: X = *x1;
98   |         ^ doesn't have a size known at compile-time
99   |
100   = help: the trait `std::marker::Sized` is not implemented for `X`
101   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
102   = help: consider adding a `where X: std::marker::Sized` bound
103   = note: all local variables must have a statically known size
104   = help: unsized locals are gated as an unstable feature
105
106error[E0277]: the size for values of type `X` cannot be known at compilation time
107  --> $DIR/unsized6.rs:32:9
108   |
109LL |     let y = *x2;
110   |         ^ doesn't have a size known at compile-time
111   |
112   = help: the trait `std::marker::Sized` is not implemented for `X`
113   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
114   = help: consider adding a `where X: std::marker::Sized` bound
115   = note: all local variables must have a statically known size
116   = help: unsized locals are gated as an unstable feature
117
118error[E0277]: the size for values of type `X` cannot be known at compilation time
119  --> $DIR/unsized6.rs:34:10
120   |
121LL |     let (y, z) = (*x3, 4);
122   |          ^ doesn't have a size known at compile-time
123   |
124   = help: the trait `std::marker::Sized` is not implemented for `X`
125   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
126   = help: consider adding a `where X: std::marker::Sized` bound
127   = note: all local variables must have a statically known size
128   = help: unsized locals are gated as an unstable feature
129
130error[E0277]: the size for values of type `X` cannot be known at compilation time
131  --> $DIR/unsized6.rs:38:18
132   |
133LL | fn g1<X: ?Sized>(x: X) {}
134   |                  ^ doesn't have a size known at compile-time
135   |
136   = help: the trait `std::marker::Sized` is not implemented for `X`
137   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
138   = help: consider adding a `where X: std::marker::Sized` bound
139   = note: all local variables must have a statically known size
140   = help: unsized locals are gated as an unstable feature
141
142error[E0277]: the size for values of type `X` cannot be known at compilation time
143  --> $DIR/unsized6.rs:40:22
144   |
145LL | fn g2<X: ?Sized + T>(x: X) {}
146   |                      ^ doesn't have a size known at compile-time
147   |
148   = help: the trait `std::marker::Sized` is not implemented for `X`
149   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
150   = help: consider adding a `where X: std::marker::Sized` bound
151   = note: all local variables must have a statically known size
152   = help: unsized locals are gated as an unstable feature
153
154error: aborting due to 13 previous errors
155
156For more information about this error, try `rustc --explain E0277`.