1 error[E0277]: the size for values of type `Y` cannot be known at compilation time
2 --> $DIR/unsized6.rs:19:9
5 | ^ doesn't have a size known at compile-time
7 = help: the trait `std::marker::Sized` is not implemented for `Y`
8 = note: to learn more, visit <https://doc.rust-lang.org/book/second-edition/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
13 error[E0277]: the size for values of type `X` cannot be known at compilation time
14 --> $DIR/unsized6.rs:17:12
16 LL | let _: (isize, (X, isize));
17 | ^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
19 = help: the trait `std::marker::Sized` is not implemented for `X`
20 = note: to learn more, visit <https://doc.rust-lang.org/book/second-edition/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
24 error[E0277]: the size for values of type `Z` cannot be known at compilation time
25 --> $DIR/unsized6.rs:21:12
27 LL | let y: (isize, (Z, usize));
28 | ^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
30 = help: the trait `std::marker::Sized` is not implemented for `Z`
31 = note: to learn more, visit <https://doc.rust-lang.org/book/second-edition/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
35 error[E0277]: the size for values of type `X` cannot be known at compilation time
36 --> $DIR/unsized6.rs:25:9
39 | ^ doesn't have a size known at compile-time
41 = help: the trait `std::marker::Sized` is not implemented for `X`
42 = note: to learn more, visit <https://doc.rust-lang.org/book/second-edition/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
47 error[E0277]: the size for values of type `Y` cannot be known at compilation time
48 --> $DIR/unsized6.rs:27:12
50 LL | let y: (isize, (Y, isize));
51 | ^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
53 = help: the trait `std::marker::Sized` is not implemented for `Y`
54 = note: to learn more, visit <https://doc.rust-lang.org/book/second-edition/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
58 error[E0277]: the size for values of type `X` cannot be known at compilation time
59 --> $DIR/unsized6.rs:32:9
62 | ^ doesn't have a size known at compile-time
64 = help: the trait `std::marker::Sized` is not implemented for `X`
65 = note: to learn more, visit <https://doc.rust-lang.org/book/second-edition/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
70 error[E0277]: the size for values of type `X` cannot be known at compilation time
71 --> $DIR/unsized6.rs:34:9
74 | ^ doesn't have a size known at compile-time
76 = help: the trait `std::marker::Sized` is not implemented for `X`
77 = note: to learn more, visit <https://doc.rust-lang.org/book/second-edition/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
82 error[E0277]: the size for values of type `X` cannot be known at compilation time
83 --> $DIR/unsized6.rs:36:10
85 LL | let (y, z) = (*x3, 4);
86 | ^ doesn't have a size known at compile-time
88 = help: the trait `std::marker::Sized` is not implemented for `X`
89 = note: to learn more, visit <https://doc.rust-lang.org/book/second-edition/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
94 error[E0277]: the size for values of type `X` cannot be known at compilation time
95 --> $DIR/unsized6.rs:40:9
98 | ^ doesn't have a size known at compile-time
100 = help: the trait `std::marker::Sized` is not implemented for `X`
101 = note: to learn more, visit <https://doc.rust-lang.org/book/second-edition/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
106 error[E0277]: the size for values of type `X` cannot be known at compilation time
107 --> $DIR/unsized6.rs:42:9
110 | ^ doesn't have a size known at compile-time
112 = help: the trait `std::marker::Sized` is not implemented for `X`
113 = note: to learn more, visit <https://doc.rust-lang.org/book/second-edition/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
118 error[E0277]: the size for values of type `X` cannot be known at compilation time
119 --> $DIR/unsized6.rs:44:10
121 LL | let (y, z) = (*x3, 4);
122 | ^ doesn't have a size known at compile-time
124 = help: the trait `std::marker::Sized` is not implemented for `X`
125 = note: to learn more, visit <https://doc.rust-lang.org/book/second-edition/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
130 error[E0277]: the size for values of type `X` cannot be known at compilation time
131 --> $DIR/unsized6.rs:48:18
133 LL | fn g1<X: ?Sized>(x: X) {}
134 | ^ doesn't have a size known at compile-time
136 = help: the trait `std::marker::Sized` is not implemented for `X`
137 = note: to learn more, visit <https://doc.rust-lang.org/book/second-edition/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
142 error[E0277]: the size for values of type `X` cannot be known at compilation time
143 --> $DIR/unsized6.rs:50:22
145 LL | fn g2<X: ?Sized + T>(x: X) {}
146 | ^ doesn't have a size known at compile-time
148 = help: the trait `std::marker::Sized` is not implemented for `X`
149 = note: to learn more, visit <https://doc.rust-lang.org/book/second-edition/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
154 error: aborting due to 13 previous errors
156 For more information about this error, try `rustc --explain E0277`.