]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-3044.stderr
Rollup merge of #97149 - ChrisDenton:win_async_pipes, r=m-ou-se
[rust.git] / src / test / ui / issues / issue-3044.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-3044.rs:3:35
3    |
4 LL |       needlesArr.iter().fold(|x, y| {
5    |  ___________________________________^
6 LL | |     });
7    | |_____^ expected closure, found `()`
8    |
9    = note: expected closure `[closure@$DIR/issue-3044.rs:3:28: 4:6]`
10             found unit type `()`
11
12 error[E0061]: this function takes 2 arguments but 1 argument was supplied
13   --> $DIR/issue-3044.rs:3:23
14    |
15 LL |       needlesArr.iter().fold(|x, y| {
16    |  _______________________^^^^-
17 LL | |     });
18    | |______- an argument is missing
19    |
20 note: associated function defined here
21   --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
22    |
23 LL |     fn fold<B, F>(mut self, init: B, mut f: F) -> B
24    |        ^^^^
25 help: provide the argument
26    |
27 LL ~     needlesArr.iter().fold(|x, y| {
28 LL ~     }, /* value */);
29    |
30
31 error: aborting due to 2 previous errors
32
33 Some errors have detailed explanations: E0061, E0308.
34 For more information about an error, try `rustc --explain E0061`.