1
1
error[E0283]: type annotations needed
2
- --> $DIR/ambig-hr-projection-issue-93340.rs:16 :5
2
+ --> $DIR/ambig-hr-projection-issue-93340.rs:17 :5
3
3
|
4
4
LL | cmp_eq
5
5
| ^^^^^^ cannot infer type of the type parameter `A` declared on the function `cmp_eq`
@@ -16,13 +16,13 @@ LL | cmp_eq::<A, B, O>
16
16
| +++++++++++
17
17
18
18
error[E0275]: overflow evaluating the requirement `impl for<'a, 'b> Fn(<A as Scalar>::RefType<'a>, <B as Scalar>::RefType<'b>) -> O == for<'a, 'b> fn(..., ...) -> ... {cmp_eq::<..., ..., ...>}`
19
- --> $DIR/ambig-hr-projection-issue-93340.rs:16 :5
19
+ --> $DIR/ambig-hr-projection-issue-93340.rs:17 :5
20
20
|
21
21
LL | cmp_eq
22
22
| ^^^^^^
23
23
24
24
error[E0275]: overflow evaluating the requirement `impl for<'a, 'b> Fn(<A as Scalar>::RefType<'a>, <B as Scalar>::RefType<'b>) -> O == for<'a, 'b> fn(..., ...) -> ... {cmp_eq::<..., ..., ...>}`
25
- --> $DIR/ambig-hr-projection-issue-93340.rs:16 :5
25
+ --> $DIR/ambig-hr-projection-issue-93340.rs:17 :5
26
26
|
27
27
LL | cmp_eq
28
28
| ^^^^^^
@@ -35,14 +35,25 @@ error[E0275]: overflow evaluating the requirement `for<'a, 'b> fn(<O as Scalar>:
35
35
LL | ) -> impl Fn(A::RefType<'_>, B::RefType<'_>) -> O {
36
36
| ___________________________________________________^
37
37
LL | |
38
- LL | | cmp_eq
39
- LL | |
40
38
LL | |
39
+ LL | | cmp_eq
40
+ ... |
41
41
LL | |
42
42
LL | | }
43
43
| |_^
44
44
45
- error: aborting due to 4 previous errors
45
+ error[E0275]: overflow evaluating the requirement `impl for<'a, 'b> Fn(<A as Scalar>::RefType<'a>, <B as Scalar>::RefType<'b>) -> O: Sized`
46
+ --> $DIR/ambig-hr-projection-issue-93340.rs:14:6
47
+ |
48
+ LL | ) -> impl Fn(A::RefType<'_>, B::RefType<'_>) -> O {
49
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
50
+ ...
51
+ LL | cmp_eq
52
+ | ------ this returned value is of type `for<'a, 'b> fn(<O as Scalar>::RefType<'a>, <_ as Scalar>::RefType<'b>) -> _ {cmp_eq::<O, _, _>}`
53
+ |
54
+ = note: the return type of a function must have a statically known size
55
+
56
+ error: aborting due to 5 previous errors
46
57
47
58
Some errors have detailed explanations: E0275, E0283.
48
59
For more information about an error, try `rustc --explain E0275`.
0 commit comments