]> git.lizzy.rs Git - rust.git/blob - src/test/ui/trait-suggest-where-clause.stderr
Rollup merge of #53082 - felixrabe:fix-doc-link-again, r=GuillaumeGomez
[rust.git] / src / test / ui / trait-suggest-where-clause.stderr
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
3    |
4 LL |     mem::size_of::<U>();
5    |     ^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
6    |
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`
11
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
14    |
15 LL |     mem::size_of::<Misc<U>>();
16    |     ^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
17    |
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`
23
24 error[E0277]: the trait bound `u64: std::convert::From<T>` is not satisfied
25   --> $DIR/trait-suggest-where-clause.rs:25:5
26    |
27 LL |     <u64 as From<T>>::from;
28    |     ^^^^^^^^^^^^^^^^^^^^^^ the trait `std::convert::From<T>` is not implemented for `u64`
29    |
30    = help: consider adding a `where u64: std::convert::From<T>` bound
31    = note: required by `std::convert::From::from`
32
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
35    |
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`
38    |
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`
41
42 error[E0277]: the trait bound `Misc<_>: std::convert::From<T>` is not satisfied
43   --> $DIR/trait-suggest-where-clause.rs:33:5
44    |
45 LL |     <Misc<_> as From<T>>::from;
46    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::convert::From<T>` is not implemented for `Misc<_>`
47    |
48    = note: required by `std::convert::From::from`
49
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
52    |
53 LL |     mem::size_of::<[T]>();
54    |     ^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
55    |
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`
59
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
62    |
63 LL |     mem::size_of::<[&U]>();
64    |     ^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
65    |
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`
69
70 error: aborting due to 7 previous errors
71
72 For more information about this error, try `rustc --explain E0277`.