1 error[E0277]: expected a `FnMut<(i32,)>` closure, found `impl FnMut(u32)`
2 --> $DIR/mismatch-fn-trait.rs:4:10
5 | ---- ^ expected an `FnMut<(i32,)>` closure, found `impl FnMut(u32)`
7 | required by a bound introduced by this call
9 = note: expected a closure with arguments `(u32,)`
10 found a closure with arguments `(i32,)`
11 note: required by a bound in `take`
12 --> $DIR/mismatch-fn-trait.rs:1:18
14 LL | fn take(_f: impl FnMut(i32)) {}
15 | ^^^^^^^^^^ required by this bound in `take`
17 error[E0277]: expected a `FnMut<(i32,)>` closure, found `impl FnMut(i32, i32)`
18 --> $DIR/mismatch-fn-trait.rs:9:10
21 | ---- ^ expected an `FnMut<(i32,)>` closure, found `impl FnMut(i32, i32)`
23 | required by a bound introduced by this call
25 = note: expected a closure taking 2 arguments, but one taking 1 argument was given
26 note: required by a bound in `take`
27 --> $DIR/mismatch-fn-trait.rs:1:18
29 LL | fn take(_f: impl FnMut(i32)) {}
30 | ^^^^^^^^^^ required by this bound in `take`
32 error[E0277]: expected a `FnMut<(i32,)>` closure, found `impl FnMut()`
33 --> $DIR/mismatch-fn-trait.rs:14:10
36 | ---- ^ expected an `FnMut<(i32,)>` closure, found `impl FnMut()`
38 | required by a bound introduced by this call
40 = note: expected a closure taking 0 arguments, but one taking 1 argument was given
41 note: required by a bound in `take`
42 --> $DIR/mismatch-fn-trait.rs:1:18
44 LL | fn take(_f: impl FnMut(i32)) {}
45 | ^^^^^^^^^^ required by this bound in `take`
47 error[E0277]: expected a `FnMut<(i32,)>` closure, found `impl FnOnce(i32)`
48 --> $DIR/mismatch-fn-trait.rs:19:10
51 | ---- ^ expected an `FnMut<(i32,)>` closure, found `impl FnOnce(i32)`
53 | required by a bound introduced by this call
55 = note: `impl FnOnce(i32)` implements `FnOnce`, but it must implement `FnMut`, which is more general
56 note: required by a bound in `take`
57 --> $DIR/mismatch-fn-trait.rs:1:18
59 LL | fn take(_f: impl FnMut(i32)) {}
60 | ^^^^^^^^^^ required by this bound in `take`
62 error[E0277]: expected a `FnMut<(i32,)>` closure, found `impl FnOnce(u32)`
63 --> $DIR/mismatch-fn-trait.rs:24:10
66 | ---- ^ expected an `FnMut<(i32,)>` closure, found `impl FnOnce(u32)`
68 | required by a bound introduced by this call
70 = note: `impl FnOnce(u32)` implements `FnOnce`, but it must implement `FnMut`, which is more general
71 = note: expected a closure with arguments `(u32,)`
72 found a closure with arguments `(i32,)`
73 note: required by a bound in `take`
74 --> $DIR/mismatch-fn-trait.rs:1:18
76 LL | fn take(_f: impl FnMut(i32)) {}
77 | ^^^^^^^^^^ required by this bound in `take`
79 error: aborting due to 5 previous errors
81 For more information about this error, try `rustc --explain E0277`.