1 error[E0061]: this function takes 0 arguments but 1 argument was supplied
2 --> $DIR/method-call-err-msg.rs:13:7
5 | ^^^^ - supplied 1 argument
9 note: associated function defined here
10 --> $DIR/method-call-err-msg.rs:5:8
12 LL | fn zero(self) -> Foo { self }
15 error[E0061]: this function takes 1 argument but 0 arguments were supplied
16 --> $DIR/method-call-err-msg.rs:14:7
19 | ^^^- supplied 0 arguments
23 note: associated function defined here
24 --> $DIR/method-call-err-msg.rs:6:8
26 LL | fn one(self, _: isize) -> Foo { self }
29 error[E0061]: this function takes 2 arguments but 1 argument was supplied
30 --> $DIR/method-call-err-msg.rs:15:7
33 | ^^^ - supplied 1 argument
35 | expected 2 arguments
37 note: associated function defined here
38 --> $DIR/method-call-err-msg.rs:7:8
40 LL | fn two(self, _: isize, _: isize) -> Foo { self }
41 | ^^^ ---- -------- --------
43 error[E0599]: no method named `take` found for struct `Foo` in the current scope
44 --> $DIR/method-call-err-msg.rs:19:7
49 | method `take` not found for this
50 | doesn't satisfy `Foo: Iterator`
53 | ^^^^ method not found in `Foo`
55 = note: the method `take` exists but the following trait bounds were not satisfied:
57 which is required by `&mut Foo: Iterator`
58 = help: items from traits can only be used if the trait is implemented and in scope
59 = note: the following trait defines an item `take`, perhaps you need to implement it:
60 candidate #1: `Iterator`
62 error[E0061]: this function takes 3 arguments but 0 arguments were supplied
63 --> $DIR/method-call-err-msg.rs:21:7
65 LL | y.three::<usize>();
66 | ^^^^^--------- supplied 0 arguments
68 | expected 3 arguments
70 note: associated function defined here
71 --> $DIR/method-call-err-msg.rs:8:8
73 LL | fn three<T>(self, _: T, _: T, _: T) -> Foo { self }
74 | ^^^^^ ---- ---- ---- ----
76 error: aborting due to 5 previous errors
78 Some errors have detailed explanations: E0061, E0599.
79 For more information about an error, try `rustc --explain E0061`.