mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
22 lines
556 B
Plaintext
22 lines
556 B
Plaintext
error[E0061]: this method takes 2 arguments but 1 argument was supplied
|
|
--> $DIR/issue-3044.rs:3:23
|
|
|
|
|
LL | needlesArr.iter().fold(|x, y| {
|
|
| _______________________^^^^-
|
|
LL | |
|
|
LL | | });
|
|
| |______- an argument is missing
|
|
|
|
|
note: associated function defined here
|
|
--> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
|
|
help: provide the argument
|
|
|
|
|
LL ~ needlesArr.iter().fold(|x, y| {
|
|
LL +
|
|
LL ~ }, /* f */);
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
For more information about this error, try `rustc --explain E0061`.
|