]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/too_generic_eval_ice.stderr
Rollup merge of #64603 - gilescope:unused-lifetime-warning, r=matthewjasper
[rust.git] / src / test / ui / consts / too_generic_eval_ice.stderr
1 error[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    |
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 `Foo`
19 ...
20 LL |         [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
27 error[E0277]: the size for values of type `B` cannot be known at compilation time
28   --> $DIR/too_generic_eval_ice.rs:7:13
29    |
30 LL | pub struct Foo<A, B>(A, B);
31    | --------------------------- required by `Foo`
32 ...
33 LL |         [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
40 error: aborting due to 3 previous errors
41
42 Some errors have detailed explanations: E0277, E0599.
43 For more information about an error, try `rustc --explain E0277`.