1 error[E0277]: the size for values of type `U` cannot be known at compilation time
2 --> $DIR/trait-suggest-where-clause.rs:17:5
4 LL | mem::size_of::<U>();
5 | ^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
7 = help: the trait `std::marker::Sized` is not implemented for `U`
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 U: std::marker::Sized` bound
10 = note: required by `std::mem::size_of`
12 error[E0277]: the size for values of type `U` cannot be known at compilation time
13 --> $DIR/trait-suggest-where-clause.rs:20:5
15 LL | mem::size_of::<Misc<U>>();
16 | ^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
18 = help: within `Misc<U>`, the trait `std::marker::Sized` is not implemented for `U`
19 = 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>
20 = help: consider adding a `where U: std::marker::Sized` bound
21 = note: required because it appears within the type `Misc<U>`
22 = note: required by `std::mem::size_of`
24 error[E0277]: the trait bound `u64: std::convert::From<T>` is not satisfied
25 --> $DIR/trait-suggest-where-clause.rs:25:5
27 LL | <u64 as From<T>>::from;
28 | ^^^^^^^^^^^^^^^^^^^^^^ the trait `std::convert::From<T>` is not implemented for `u64`
30 = help: consider adding a `where u64: std::convert::From<T>` bound
31 = note: required by `std::convert::From::from`
33 error[E0277]: the trait bound `u64: std::convert::From<<T as std::iter::Iterator>::Item>` is not satisfied
34 --> $DIR/trait-suggest-where-clause.rs:28:5
36 LL | <u64 as From<<T as Iterator>::Item>>::from;
37 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::convert::From<<T as std::iter::Iterator>::Item>` is not implemented for `u64`
39 = help: consider adding a `where u64: std::convert::From<<T as std::iter::Iterator>::Item>` bound
40 = note: required by `std::convert::From::from`
42 error[E0277]: the trait bound `Misc<_>: std::convert::From<T>` is not satisfied
43 --> $DIR/trait-suggest-where-clause.rs:33:5
45 LL | <Misc<_> as From<T>>::from;
46 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::convert::From<T>` is not implemented for `Misc<_>`
48 = note: required by `std::convert::From::from`
50 error[E0277]: the size for values of type `[T]` cannot be known at compilation time
51 --> $DIR/trait-suggest-where-clause.rs:38:5
53 LL | mem::size_of::<[T]>();
54 | ^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
56 = help: the trait `std::marker::Sized` is not implemented for `[T]`
57 = 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>
58 = note: required by `std::mem::size_of`
60 error[E0277]: the size for values of type `[&U]` cannot be known at compilation time
61 --> $DIR/trait-suggest-where-clause.rs:41:5
63 LL | mem::size_of::<[&U]>();
64 | ^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
66 = help: the trait `std::marker::Sized` is not implemented for `[&U]`
67 = 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>
68 = note: required by `std::mem::size_of`
70 error: aborting due to 7 previous errors
72 For more information about this error, try `rustc --explain E0277`.