]> git.lizzy.rs Git - rust.git/blob - src/test/ui/fn/issue-3044.stderr
Auto merge of #106349 - LeSeulArtichaut:dyn-star-tracking-issue, r=jackh726
[rust.git] / src / test / ui / fn / issue-3044.stderr
1 error[E0061]: this function takes 2 arguments but 1 argument was supplied
2   --> $DIR/issue-3044.rs:3:23
3    |
4 LL |       needlesArr.iter().fold(|x, y| {
5    |  _______________________^^^^-
6 LL | |
7 LL | |     });
8    | |______- an argument is missing
9    |
10 note: associated function defined here
11   --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
12 help: provide the argument
13    |
14 LL ~     needlesArr.iter().fold(|x, y| {
15 LL +
16 LL ~     }, /* f */);
17    |
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0061`.