1 This error indicates a type mismatch in closure arguments.
3 Erroneous code example:
6 fn foo<F: Fn(i32)>(f: F) {
14 The error occurs because `foo` accepts a closure that takes an `i32` argument,
15 but in `main`, it is passed a closure with a `&str` argument.
17 This can be resolved by changing the type annotation or removing it entirely
18 if it can be inferred.
21 fn foo<F: Fn(i32)>(f: F) {