2017-12-10 22:47:55 +03:00
|
|
|
error[E0277]: the trait bound `U: std::marker::Sized` is not satisfied
|
|
|
|
|
--> $DIR/trait-suggest-where-clause.rs:17:5
|
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | mem::size_of::<U>();
|
2017-12-10 22:47:55 +03:00
|
|
|
| ^^^^^^^^^^^^^^^^^ `U` does not have a constant size known at compile-time
|
|
|
|
|
|
|
|
|
|
|
= help: the trait `std::marker::Sized` is not implemented for `U`
|
|
|
|
|
= help: consider adding a `where U: std::marker::Sized` bound
|
|
|
|
|
= note: required by `std::mem::size_of`
|
|
|
|
|
|
|
|
|
|
error[E0277]: the trait bound `U: std::marker::Sized` is not satisfied in `Misc<U>`
|
2017-12-10 23:29:24 +03:00
|
|
|
--> $DIR/trait-suggest-where-clause.rs:20:5
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | mem::size_of::<Misc<U>>();
|
2017-12-10 22:47:55 +03:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ `U` does not have a constant size known at compile-time
|
|
|
|
|
|
|
|
|
|
|
= help: within `Misc<U>`, the trait `std::marker::Sized` is not implemented for `U`
|
|
|
|
|
= help: consider adding a `where U: std::marker::Sized` bound
|
|
|
|
|
= note: required because it appears within the type `Misc<U>`
|
|
|
|
|
= note: required by `std::mem::size_of`
|
|
|
|
|
|
|
|
|
|
error[E0277]: the trait bound `u64: std::convert::From<T>` is not satisfied
|
2017-12-10 23:29:24 +03:00
|
|
|
--> $DIR/trait-suggest-where-clause.rs:25:5
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | <u64 as From<T>>::from;
|
2017-12-10 22:47:55 +03:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ the trait `std::convert::From<T>` is not implemented for `u64`
|
|
|
|
|
|
|
|
|
|
|
= help: consider adding a `where u64: std::convert::From<T>` bound
|
|
|
|
|
= note: required by `std::convert::From::from`
|
|
|
|
|
|
|
|
|
|
error[E0277]: the trait bound `u64: std::convert::From<<T as std::iter::Iterator>::Item>` is not satisfied
|
2017-12-10 23:29:24 +03:00
|
|
|
--> $DIR/trait-suggest-where-clause.rs:28:5
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | <u64 as From<<T as Iterator>::Item>>::from;
|
2017-12-10 22:47:55 +03:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::convert::From<<T as std::iter::Iterator>::Item>` is not implemented for `u64`
|
|
|
|
|
|
|
|
|
|
|
= help: consider adding a `where u64: std::convert::From<<T as std::iter::Iterator>::Item>` bound
|
|
|
|
|
= note: required by `std::convert::From::from`
|
|
|
|
|
|
|
|
|
|
error[E0277]: the trait bound `Misc<_>: std::convert::From<T>` is not satisfied
|
2017-12-10 23:29:24 +03:00
|
|
|
--> $DIR/trait-suggest-where-clause.rs:33:5
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | <Misc<_> as From<T>>::from;
|
2017-12-10 22:47:55 +03:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::convert::From<T>` is not implemented for `Misc<_>`
|
|
|
|
|
|
|
|
|
|
|
= note: required by `std::convert::From::from`
|
|
|
|
|
|
|
|
|
|
error[E0277]: the trait bound `[T]: std::marker::Sized` is not satisfied
|
2017-12-10 23:29:24 +03:00
|
|
|
--> $DIR/trait-suggest-where-clause.rs:38:5
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | mem::size_of::<[T]>();
|
2017-12-10 22:47:55 +03:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^ `[T]` does not have a constant size known at compile-time
|
|
|
|
|
|
|
|
|
|
|
= help: the trait `std::marker::Sized` is not implemented for `[T]`
|
|
|
|
|
= note: required by `std::mem::size_of`
|
|
|
|
|
|
|
|
|
|
error[E0277]: the trait bound `[&U]: std::marker::Sized` is not satisfied
|
2017-12-10 23:29:24 +03:00
|
|
|
--> $DIR/trait-suggest-where-clause.rs:41:5
|
2017-12-10 22:47:55 +03:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | mem::size_of::<[&U]>();
|
2017-12-10 22:47:55 +03:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ `[&U]` does not have a constant size known at compile-time
|
|
|
|
|
|
|
|
|
|
|
= help: the trait `std::marker::Sized` is not implemented for `[&U]`
|
|
|
|
|
= note: required by `std::mem::size_of`
|
|
|
|
|
|
|
|
|
|
error: aborting due to 7 previous errors
|
|
|
|
|
|
2018-02-19 21:40:25 +01:00
|
|
|
If you want more information on this error, try using "rustc --explain E0277"
|