1 error[E0631]: type mismatch in closure arguments
4 LL | foo(|_: isize| {});
5 | ^^^ ---------- found signature of `fn(isize) -> _`
7 | expected signature of `fn(usize) -> _`
9 note: required by a bound in `foo`
10 --> $DIR/E0631.rs:3:11
12 LL | fn foo<F: Fn(usize)>(_: F) {}
13 | ^^^^^^^^^ required by this bound in `foo`
15 error[E0631]: type mismatch in closure arguments
18 LL | bar(|_: isize| {});
19 | ^^^ ---------- found signature of `fn(isize) -> _`
21 | expected signature of `fn(usize) -> _`
23 note: required by a bound in `bar`
24 --> $DIR/E0631.rs:4:11
26 LL | fn bar<F: Fn<usize>>(_: F) {}
27 | ^^^^^^^^^ required by this bound in `bar`
29 error[E0631]: type mismatch in function arguments
33 | ------------ found signature of `fn(u64) -> _`
36 | --- ^ expected signature of `fn(usize) -> _`
38 | required by a bound introduced by this call
40 note: required by a bound in `foo`
41 --> $DIR/E0631.rs:3:11
43 LL | fn foo<F: Fn(usize)>(_: F) {}
44 | ^^^^^^^^^ required by this bound in `foo`
46 error[E0631]: type mismatch in function arguments
47 --> $DIR/E0631.rs:10:9
50 | ------------ found signature of `fn(u64) -> _`
53 | --- ^ expected signature of `fn(usize) -> _`
55 | required by a bound introduced by this call
57 note: required by a bound in `bar`
58 --> $DIR/E0631.rs:4:11
60 LL | fn bar<F: Fn<usize>>(_: F) {}
61 | ^^^^^^^^^ required by this bound in `bar`
63 error: aborting due to 4 previous errors
65 For more information about this error, try `rustc --explain E0631`.