]> git.proxmox.com Git - rustc.git/blame - src/test/ui/closure-expected-type/expect-infer-var-appearing-twice.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / closure-expected-type / expect-infer-var-appearing-twice.stderr
CommitLineData
b7449926 1error[E0631]: type mismatch in closure arguments
0731742a 2 --> $DIR/expect-infer-var-appearing-twice.rs:14:5
b7449926 3 |
e1599b0c 4LL | fn with_closure<F, A>(_: F)
ba9703b0 5 | ------------ required by a bound in this
e1599b0c
XL
6LL | where F: FnOnce(A, A)
7 | ------------ required by this bound in `with_closure`
8...
b7449926
XL
9LL | with_closure(|x: u32, y: i32| {
10 | ^^^^^^^^^^^^ ---------------- found signature of `fn(u32, i32) -> _`
11 | |
12 | expected signature of `fn(_, _) -> _`
b7449926
XL
13
14error: aborting due to previous error
15
60c5eb7d 16For more information about this error, try `rustc --explain E0631`.