]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/chalkify/trait-objects.stderr
Bump chalk to v0.87
[rust.git] / src / test / ui / chalkify / trait-objects.stderr
index 098bd2d3226e5e7abedc043b11f98d9b536b81fe..422d39742eb552c3be5bb82da23b193fc778a877 100644 (file)
@@ -22,6 +22,10 @@ LL |     f(2);
    |     ^^^^ expected an `Fn<(i32,)>` closure, found `dyn Fn(i32) -> i32`
    |
    = help: the trait `Fn<(i32,)>` is not implemented for `dyn Fn(i32) -> i32`
+help: consider introducing a `where` clause, but there might be an alternative better way to express this requirement
+   |
+LL | fn main() where dyn Fn(i32) -> i32: Fn<(i32,)> {
+   |           ++++++++++++++++++++++++++++++++++++
 
 error: aborting due to 3 previous errors