fork/rust
git clone https://git.julia.blue/fork/rust
8d69840ab92
1.43.1
1error[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 | 4LL | pub struct Foo<A, B>(A, B); 5 | --------------------------- associated item `HOST_SIZE` not found for this 6... 7LL | [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 14error[E0277]: the size for values of type `A` cannot be known at compilation time 15 --> $DIR/too_generic_eval_ice.rs:7:13 16 | 17LL | pub struct Foo<A, B>(A, B); 18 | --------------------------- required by `Foo` 19LL | 20LL | impl<A, B> Foo<A, B> { 21 | - this type parameter needs to be `std::marker::Sized` 22... 23LL | [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 29error[E0277]: the size for values of type `B` cannot be known at compilation time 30 --> $DIR/too_generic_eval_ice.rs:7:13 31 | 32LL | pub struct Foo<A, B>(A, B); 33 | --------------------------- required by `Foo` 34LL | 35LL | impl<A, B> Foo<A, B> { 36 | - this type parameter needs to be `std::marker::Sized` 37... 38LL | [5; Self::HOST_SIZE] == [6; 0] 39 | ^^^^^^^^^^^^^^^ doesn't have a size known at compile-time 40 | 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> 43 44error: aborting due to 3 previous errors 45 46Some errors have detailed explanations: E0277, E0599. 47For more information about an error, try `rustc --explain E0277`.