We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed17c6b commit 27fddcfCopy full SHA for 27fddcf
src/test/ui/chalkify/trait-objects.stderr
@@ -22,6 +22,10 @@ LL | f(2);
22
| ^^^^ expected an `Fn<(i32,)>` closure, found `dyn Fn(i32) -> i32`
23
|
24
= help: the trait `Fn<(i32,)>` is not implemented for `dyn Fn(i32) -> i32`
25
+help: consider introducing a `where` clause, but there might be an alternative better way to express this requirement
26
+ |
27
+LL | fn main() where dyn Fn(i32) -> i32: Fn<(i32,)> {
28
+ | ++++++++++++++++++++++++++++++++++++
29
30
error: aborting due to 3 previous errors
31
0 commit comments