1 error[E0631]: type mismatch in closure arguments
2 --> $DIR/expect-infer-var-appearing-twice.rs:14:5
4 LL | with_closure(|x: u32, y: i32| {
5 | ^^^^^^^^^^^^ ---------------- found signature of `fn(u32, i32) -> _`
7 | expected signature of `fn(_, _) -> _`
9 note: required by a bound in `with_closure`
10 --> $DIR/expect-infer-var-appearing-twice.rs:2:14
12 LL | fn with_closure<F, A>(_: F)
13 | ------------ required by a bound in this
14 LL | where F: FnOnce(A, A)
15 | ^^^^^^^^^^^^ required by this bound in `with_closure`
17 error: aborting due to previous error
19 For more information about this error, try `rustc --explain E0631`.