fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
1.9 KiB43 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`
19...
20LL |         [5; Self::HOST_SIZE] == [6; 0]
21   |             ^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
22   |
23   = help: the trait `std::marker::Sized` is not implemented for `A`
24   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
25   = help: consider adding a `where A: std::marker::Sized` bound
26
27error[E0277]: the size for values of type `B` cannot be known at compilation time
28  --> $DIR/too_generic_eval_ice.rs:7:13
29   |
30LL | pub struct Foo<A, B>(A, B);
31   | --------------------------- required by `Foo`
32...
33LL |         [5; Self::HOST_SIZE] == [6; 0]
34   |             ^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
35   |
36   = help: the trait `std::marker::Sized` is not implemented for `B`
37   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
38   = help: consider adding a `where B: std::marker::Sized` bound
39
40error: aborting due to 3 previous errors
41
42Some errors have detailed explanations: E0277, E0599.
43For more information about an error, try `rustc --explain E0277`.