1- error[E0599]: no associated item named `HOST_SIZE` found for struct `Foo<A, B>` in the current scope
2- --> $DIR/too_generic_eval_ice.rs:7:19
3- |
4- LL | pub struct Foo<A, B>(A, B);
5- | --------------------------- associated item `HOST_SIZE` not found for this
6- ...
7- LL | [5; Self::HOST_SIZE] == [6; 0]
8- | ^^^^^^^^^ associated item not found in `Foo<A, B>`
9- |
10- = note: the method `HOST_SIZE` exists but the following trait bounds were not satisfied:
11- `A: std::marker::Sized`
12- `B: std::marker::Sized`
13-
14- error[E0277]: the size for values of type `A` cannot be known at compilation time
15- --> $DIR/too_generic_eval_ice.rs:7:13
16- |
17- LL | pub struct Foo<A, B>(A, B);
18- | - required by this bound in `Foo`
19- LL |
20- LL | impl<A, B> Foo<A, B> {
21- | - this type parameter needs to be `std::marker::Sized`
22- ...
23- LL | [5; Self::HOST_SIZE] == [6; 0]
24- | ^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
25- |
26- = help: the trait `std::marker::Sized` is not implemented for `A`
27- = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
28-
29- error[E0277]: the size for values of type `B` cannot be known at compilation time
1+ error: constant expression depends on a generic parameter
302 --> $DIR/too_generic_eval_ice.rs:7:13
313 |
32- LL | pub struct Foo<A, B>(A, B);
33- | - required by this bound in `Foo`
34- LL |
35- LL | impl<A, B> Foo<A, B> {
36- | - this type parameter needs to be `std::marker::Sized`
37- ...
384LL | [5; Self::HOST_SIZE] == [6; 0]
39- | ^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
5+ | ^^^^^^^^^^^^^^^
406 |
41- = help: the trait `std::marker::Sized` is not implemented for `B`
42- = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
7+ = note: this may fail depending on what value the parameter takes
438
449error[E0369]: binary operation `==` cannot be applied to type `[{integer}; _]`
4510 --> $DIR/too_generic_eval_ice.rs:7:30
@@ -49,7 +14,6 @@ LL | [5; Self::HOST_SIZE] == [6; 0]
4914 | |
5015 | [{integer}; _]
5116
52- error: aborting due to 4 previous errors
17+ error: aborting due to 2 previous errors
5318
54- Some errors have detailed explanations: E0277, E0369, E0599.
55- For more information about an error, try `rustc --explain E0277`.
19+ For more information about this error, try `rustc --explain E0369`.
0 commit comments