about summary refs log tree commit diff
path: root/tests/ui/const-generics/mgca/projection-error.stderr
blob: e6888351da13a779685d69ac58837230ab39e3f6 (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
error[E0412]: cannot find type `T` in this scope
  --> $DIR/projection-error.rs:13:17
   |
LL | pub trait Tr<A> {
   | --------------- similarly named trait `Tr` defined here
...
LL | fn mk_array(_x: T) -> [(); <T as Tr<bool>>::SIZE] {}
   |                 ^
   |
help: a trait with a similar name exists
   |
LL | fn mk_array(_x: Tr) -> [(); <T as Tr<bool>>::SIZE] {}
   |                  +
help: you might be missing a type parameter
   |
LL | fn mk_array<T>(_x: T) -> [(); <T as Tr<bool>>::SIZE] {}
   |            +++

error[E0412]: cannot find type `T` in this scope
  --> $DIR/projection-error.rs:13:29
   |
LL | pub trait Tr<A> {
   | --------------- similarly named trait `Tr` defined here
...
LL | fn mk_array(_x: T) -> [(); <T as Tr<bool>>::SIZE] {}
   |                             ^
   |
help: a trait with a similar name exists
   |
LL | fn mk_array(_x: T) -> [(); <Tr as Tr<bool>>::SIZE] {}
   |                              +
help: you might be missing a type parameter
   |
LL | fn mk_array<T>(_x: T) -> [(); <T as Tr<bool>>::SIZE] {}
   |            +++

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0412`.