summaryrefslogtreecommitdiffstats
path: root/tests/ui/fn/issue-3044.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/fn/issue-3044.stderr')
-rw-r--r--tests/ui/fn/issue-3044.stderr21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/ui/fn/issue-3044.stderr b/tests/ui/fn/issue-3044.stderr
new file mode 100644
index 000000000..2690ad711
--- /dev/null
+++ b/tests/ui/fn/issue-3044.stderr
@@ -0,0 +1,21 @@
+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`.