1 error[E0277]: the size for values of type `X` cannot be known at compilation time
2 --> $DIR/unsized5.rs:4:5
5 | ^^^^^ doesn't have a size known at compile-time
7 = help: the trait `std::marker::Sized` is not implemented for `X`
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 X: std::marker::Sized` bound
10 = note: only the last field of a struct may have a dynamically sized type
12 error[E0277]: the size for values of type `X` cannot be known at compilation time
13 --> $DIR/unsized5.rs:10:5
16 | ^^^^ doesn't have a size known at compile-time
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: only the last field of a struct may have a dynamically sized type
23 error[E0277]: the size for values of type `str` cannot be known at compilation time
24 --> $DIR/unsized5.rs:15:5
27 | ^^^^^^ doesn't have a size known at compile-time
29 = help: the trait `std::marker::Sized` is not implemented for `str`
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 = note: only the last field of a struct may have a dynamically sized type
33 error[E0277]: the size for values of type `[u8]` cannot be known at compilation time
34 --> $DIR/unsized5.rs:20:5
37 | ^^^^^^^ doesn't have a size known at compile-time
39 = help: the trait `std::marker::Sized` is not implemented for `[u8]`
40 = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
41 = note: only the last field of a struct may have a dynamically sized type
43 error[E0277]: the size for values of type `X` cannot be known at compilation time
44 --> $DIR/unsized5.rs:25:8
47 | ^ doesn't have a size known at compile-time
49 = help: the trait `std::marker::Sized` is not implemented for `X`
50 = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
51 = help: consider adding a `where X: std::marker::Sized` bound
52 = note: no field of an enum variant may have a dynamically sized type
54 error[E0277]: the size for values of type `X` cannot be known at compilation time
55 --> $DIR/unsized5.rs:29:8
57 LL | V2{f1: X, f: isize},
58 | ^^^^^ doesn't have a size known at compile-time
60 = help: the trait `std::marker::Sized` is not implemented for `X`
61 = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
62 = help: consider adding a `where X: std::marker::Sized` bound
63 = note: no field of an enum variant may have a dynamically sized type
65 error: aborting due to 6 previous errors
67 For more information about this error, try `rustc --explain E0277`.