]> git.lizzy.rs Git - rust.git/blob - src/test/ui/methods/method-call-err-msg.stderr
Merge commit '3e7c6dec244539970b593824334876f8b6ed0b18' into clippyup
[rust.git] / src / test / ui / methods / method-call-err-msg.stderr
1 error[E0061]: this function takes 0 arguments but 1 argument was supplied
2   --> $DIR/method-call-err-msg.rs:13:7
3    |
4 LL |     x.zero(0)
5    |       ^^^^ - supplied 1 argument
6    |       |
7    |       expected 0 arguments
8    |
9 note: associated function defined here
10   --> $DIR/method-call-err-msg.rs:5:8
11    |
12 LL |     fn zero(self) -> Foo { self }
13    |        ^^^^ ----
14
15 error[E0061]: this function takes 1 argument but 0 arguments were supplied
16   --> $DIR/method-call-err-msg.rs:14:7
17    |
18 LL |      .one()
19    |       ^^^- supplied 0 arguments
20    |       |
21    |       expected 1 argument
22    |
23 note: associated function defined here
24   --> $DIR/method-call-err-msg.rs:6:8
25    |
26 LL |     fn one(self, _: isize) -> Foo { self }
27    |        ^^^ ----  --------
28
29 error[E0061]: this function takes 2 arguments but 1 argument was supplied
30   --> $DIR/method-call-err-msg.rs:15:7
31    |
32 LL |      .two(0);
33    |       ^^^ - supplied 1 argument
34    |       |
35    |       expected 2 arguments
36    |
37 note: associated function defined here
38   --> $DIR/method-call-err-msg.rs:7:8
39    |
40 LL |     fn two(self, _: isize, _: isize) -> Foo { self }
41    |        ^^^ ----  --------  --------
42
43 error[E0599]: no method named `take` found for struct `Foo` in the current scope
44   --> $DIR/method-call-err-msg.rs:19:7
45    |
46 LL | pub struct Foo;
47    | ---------------
48    | |
49    | method `take` not found for this
50    | doesn't satisfy `Foo: Iterator`
51 ...
52 LL |      .take()
53    |       ^^^^ method not found in `Foo`
54    |
55    = note: the method `take` exists but the following trait bounds were not satisfied:
56            `Foo: Iterator`
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`
61
62 error[E0061]: this function takes 3 arguments but 0 arguments were supplied
63   --> $DIR/method-call-err-msg.rs:21:7
64    |
65 LL |     y.three::<usize>();
66    |       ^^^^^--------- supplied 0 arguments
67    |       |
68    |       expected 3 arguments
69    |
70 note: associated function defined here
71   --> $DIR/method-call-err-msg.rs:8:8
72    |
73 LL |     fn three<T>(self, _: T, _: T, _: T) -> Foo { self }
74    |        ^^^^^    ----  ----  ----  ----
75
76 error: aborting due to 5 previous errors
77
78 Some errors have detailed explanations: E0061, E0599.
79 For more information about an error, try `rustc --explain E0061`.