You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/ui/generic-associated-types/ambig-hr-projection-issue-93340.next.stderr
+7-5
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
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`
@@ -15,14 +15,16 @@ help: consider specifying the generic arguments
15
15
LL | cmp_eq::<A, B, O>
16
16
| +++++++++++
17
17
18
-
error[E0271]: type mismatch resolving `build_expression<A, B, O>::{opaque#0} normalizes-to _`
18
+
error[E0277]: expected a `Fn(<A as Scalar>::RefType<'_>, <B as Scalar>::RefType<'_>)` closure, found `for<'a, 'b> fn(<O as Scalar>::RefType<'a>, <_ as Scalar>::RefType<'b>) -> O {cmp_eq::<O, _, O>}`
| |_________________________________________________^ expected an `Fn(<A as Scalar>::RefType<'_>, <B as Scalar>::RefType<'_>)` closure, found `for<'a, 'b> fn(<O as Scalar>::RefType<'a>, <_ as Scalar>::RefType<'b>) -> O {cmp_eq::<O, _, O>}`
24
+
|
25
+
= help: the trait `for<'a, 'b> Fn(<A as Scalar>::RefType<'a>, <B as Scalar>::RefType<'b>)` is not implemented for fn item `for<'a, 'b> fn(<O as Scalar>::RefType<'a>, <_ as Scalar>::RefType<'b>) -> O {cmp_eq::<O, _, O>}`
24
26
25
27
error: aborting due to 2 previous errors
26
28
27
-
Some errors have detailed explanations: E0271, E0283.
28
-
For more information about an error, try `rustc --explain E0271`.
29
+
Some errors have detailed explanations: E0277, E0283.
30
+
For more information about an error, try `rustc --explain E0277`.
0 commit comments