summary refs log tree commit diff
path: root/src/test/ui/consts/too_generic_eval_ice.stderr
blob: 8836de0023c9d5370527f918b42cebcb27bc7d35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
error[E0599]: no associated item named `HOST_SIZE` found for struct `Foo<A, B>` in the current scope
  --> $DIR/too_generic_eval_ice.rs:7:19
   |
LL | pub struct Foo<A, B>(A, B);
   | --------------------------- associated item `HOST_SIZE` not found for this
...
LL |         [5; Self::HOST_SIZE] == [6; 0]
   |                   ^^^^^^^^^ associated item not found in `Foo<A, B>`
   |
   = note: the method `HOST_SIZE` exists but the following trait bounds were not satisfied:
           `A: std::marker::Sized`
           `B: std::marker::Sized`

error[E0277]: the size for values of type `A` cannot be known at compilation time
  --> $DIR/too_generic_eval_ice.rs:7:13
   |
LL | pub struct Foo<A, B>(A, B);
   | --------------------------- required by `Foo`
LL | 
LL | impl<A, B> Foo<A, B> {
   |      - this type parameter needs to be `std::marker::Sized`
...
LL |         [5; Self::HOST_SIZE] == [6; 0]
   |             ^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
   |
   = help: the trait `std::marker::Sized` is not implemented for `A`
   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>

error[E0277]: the size for values of type `B` cannot be known at compilation time
  --> $DIR/too_generic_eval_ice.rs:7:13
   |
LL | pub struct Foo<A, B>(A, B);
   | --------------------------- required by `Foo`
LL | 
LL | impl<A, B> Foo<A, B> {
   |         - this type parameter needs to be `std::marker::Sized`
...
LL |         [5; Self::HOST_SIZE] == [6; 0]
   |             ^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
   |
   = help: the trait `std::marker::Sized` is not implemented for `B`
   = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>

error: aborting due to 3 previous errors

Some errors have detailed explanations: E0277, E0599.
For more information about an error, try `rustc --explain E0277`.