fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
2.0 KiB47 linesraw
1error[E0599]: no associated item named `HOST_SIZE` found for type `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   |      - help: consider restricting this bound: `A: 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   |         - help: consider restricting this bound: `B: 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`.