about summary refs log tree commit diff
path: root/src/test/ui/methods/method-call-err-msg.stderr
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2023-01-05 03:02:10 +0000
committerEsteban Küber <esteban@kuber.com.ar>2023-01-05 03:02:10 +0000
commit5393c6bbd172bb87b49033e755f538228b14440b (patch)
tree99d68c24e483198ab63cee61f921366fe581c4f4 /src/test/ui/methods/method-call-err-msg.stderr
parentb7cdb635c4b973572307ad288466fba64533369c (diff)
downloadrust-5393c6bbd172bb87b49033e755f538228b14440b.tar.gz
rust-5393c6bbd172bb87b49033e755f538228b14440b.zip
Tweak wording of fn call with wrong number of args
Diffstat (limited to 'src/test/ui/methods/method-call-err-msg.stderr')
-rw-r--r--src/test/ui/methods/method-call-err-msg.stderr8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/ui/methods/method-call-err-msg.stderr b/src/test/ui/methods/method-call-err-msg.stderr
index 3f4e647491e..81269b73b9a 100644
--- a/src/test/ui/methods/method-call-err-msg.stderr
+++ b/src/test/ui/methods/method-call-err-msg.stderr
@@ -1,4 +1,4 @@
-error[E0061]: this function takes 0 arguments but 1 argument was supplied
+error[E0061]: this method takes 0 arguments but 1 argument was supplied
   --> $DIR/method-call-err-msg.rs:13:7
    |
 LL |     x.zero(0)
@@ -14,7 +14,7 @@ help: remove the extra argument
 LL |     x.zero()
    |           ~~
 
-error[E0061]: this function takes 1 argument but 0 arguments were supplied
+error[E0061]: this method takes 1 argument but 0 arguments were supplied
   --> $DIR/method-call-err-msg.rs:14:7
    |
 LL |      .one()
@@ -30,7 +30,7 @@ help: provide the argument
 LL |      .one(/* isize */)
    |          ~~~~~~~~~~~~~
 
-error[E0061]: this function takes 2 arguments but 1 argument was supplied
+error[E0061]: this method takes 2 arguments but 1 argument was supplied
   --> $DIR/method-call-err-msg.rs:15:7
    |
 LL |      .two(0);
@@ -67,7 +67,7 @@ note: the trait `Iterator` must be implemented
    = note: the following trait defines an item `take`, perhaps you need to implement it:
            candidate #1: `Iterator`
 
-error[E0061]: this function takes 3 arguments but 0 arguments were supplied
+error[E0061]: this method takes 3 arguments but 0 arguments were supplied
   --> $DIR/method-call-err-msg.rs:21:7
    |
 LL |     y.three::<usize>();