2020-01-08 10:05:31 -06:00
|
|
|
error[E0599]: no associated item named `HOST_SIZE` found for struct `Foo<A, B>` in the current scope
|
2019-08-12 11:00:47 -05:00
|
|
|
--> $DIR/too_generic_eval_ice.rs:7:19
|
|
|
|
|
|
|
|
|
LL | pub struct Foo<A, B>(A, B);
|
|
|
|
| --------------------------- associated item `HOST_SIZE` not found for this
|
|
|
|
...
|
|
|
|
LL | [5; Self::HOST_SIZE] == [6; 0]
|
|
|
|
| ^^^^^^^^^ associated item not found in `Foo<A, B>`
|
|
|
|
|
|
|
|
|
= note: the method `HOST_SIZE` exists but the following trait bounds were not satisfied:
|
2020-02-18 01:22:19 -06:00
|
|
|
`A: std::marker::Sized`
|
|
|
|
`B: std::marker::Sized`
|
2019-08-12 11:00:47 -05:00
|
|
|
|
|
|
|
error[E0277]: the size for values of type `A` cannot be known at compilation time
|
|
|
|
--> $DIR/too_generic_eval_ice.rs:7:13
|
|
|
|
|
|
2019-08-24 16:44:43 -05:00
|
|
|
LL | pub struct Foo<A, B>(A, B);
|
2020-04-06 00:15:06 -05:00
|
|
|
| - required by this bound in `Foo`
|
2019-10-08 17:22:27 -05:00
|
|
|
LL |
|
|
|
|
LL | impl<A, B> Foo<A, B> {
|
2020-02-02 04:03:54 -06:00
|
|
|
| - this type parameter needs to be `std::marker::Sized`
|
2019-08-24 16:44:43 -05:00
|
|
|
...
|
2019-08-12 11:00:47 -05:00
|
|
|
LL | [5; Self::HOST_SIZE] == [6; 0]
|
|
|
|
| ^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
|
|
|
|
|
|
|
|
= help: the trait `std::marker::Sized` is not implemented for `A`
|
|
|
|
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
|
|
|
|
|
|
|
|
error[E0277]: the size for values of type `B` cannot be known at compilation time
|
|
|
|
--> $DIR/too_generic_eval_ice.rs:7:13
|
|
|
|
|
|
2019-08-24 16:44:43 -05:00
|
|
|
LL | pub struct Foo<A, B>(A, B);
|
2020-04-06 00:15:06 -05:00
|
|
|
| - required by this bound in `Foo`
|
2019-10-08 17:22:27 -05:00
|
|
|
LL |
|
|
|
|
LL | impl<A, B> Foo<A, B> {
|
2020-02-02 04:03:54 -06:00
|
|
|
| - this type parameter needs to be `std::marker::Sized`
|
2019-08-24 16:44:43 -05:00
|
|
|
...
|
2019-08-12 11:00:47 -05:00
|
|
|
LL | [5; Self::HOST_SIZE] == [6; 0]
|
|
|
|
| ^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
|
|
|
|
|
|
|
|
= help: the trait `std::marker::Sized` is not implemented for `B`
|
|
|
|
= note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
|
|
|
|
|
2020-03-14 09:30:35 -05:00
|
|
|
error[E0369]: binary operation `==` cannot be applied to type `[{integer}; _]`
|
|
|
|
--> $DIR/too_generic_eval_ice.rs:7:30
|
|
|
|
|
|
|
|
|
LL | [5; Self::HOST_SIZE] == [6; 0]
|
|
|
|
| -------------------- ^^ ------ [{integer}; 0]
|
|
|
|
| |
|
|
|
|
| [{integer}; _]
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
2019-08-12 11:00:47 -05:00
|
|
|
|
2020-03-14 09:30:35 -05:00
|
|
|
Some errors have detailed explanations: E0277, E0369, E0599.
|
2019-08-12 11:00:47 -05:00
|
|
|
For more information about an error, try `rustc --explain E0277`.
|