Skip to content

Commit 27fddcf

Browse files
bless a chalk test
1 parent ed17c6b commit 27fddcf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/test/ui/chalkify/trait-objects.stderr

+4
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ LL | f(2);
2222
| ^^^^ expected an `Fn<(i32,)>` closure, found `dyn Fn(i32) -> i32`
2323
|
2424
= 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+
| ++++++++++++++++++++++++++++++++++++
2529

2630
error: aborting due to 3 previous errors
2731

0 commit comments

Comments
 (0)