• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error[E0061]: this function takes 6 arguments but 7 arguments were supplied
2  --> $DIR/issue-101097.rs:16:5
3   |
4LL |     f(C, A, A, A, B, B, C);
5   |     ^ -     -  -  - expected `C`, found `B`
6   |       |     |  |
7   |       |     |  unexpected argument of type `A`
8   |       |     expected `B`, found `A`
9   |       expected `A`, found `C`
10   |
11note: function defined here
12  --> $DIR/issue-101097.rs:6:4
13   |
14LL | fn f(
15   |    ^
16LL |     a1: A,
17   |     -----
18LL |     a2: A,
19   |     -----
20LL |     b1: B,
21   |     -----
22LL |     b2: B,
23   |     -----
24LL |     c1: C,
25   |     -----
26LL |     c2: C,
27   |     -----
28help: did you mean
29   |
30LL |     f(A, A, B, B, C, C);
31   |      ~~~~~~~~~~~~~~~~~~
32
33error[E0308]: arguments to this function are incorrect
34  --> $DIR/issue-101097.rs:17:5
35   |
36LL |     f(C, C, A, A, B, B);
37   |     ^
38   |
39note: function defined here
40  --> $DIR/issue-101097.rs:6:4
41   |
42LL | fn f(
43   |    ^
44LL |     a1: A,
45   |     -----
46LL |     a2: A,
47   |     -----
48LL |     b1: B,
49   |     -----
50LL |     b2: B,
51   |     -----
52LL |     c1: C,
53   |     -----
54LL |     c2: C,
55   |     -----
56help: did you mean
57   |
58LL |     f(A, A, B, B, C, C);
59   |      ~~~~~~~~~~~~~~~~~~
60
61error[E0308]: arguments to this function are incorrect
62  --> $DIR/issue-101097.rs:18:5
63   |
64LL |     f(A, A, D, D, B, B);
65   |     ^       -  -  ---- two arguments of type `C` and `C` are missing
66   |             |  |
67   |             |  unexpected argument of type `D`
68   |             unexpected argument of type `D`
69   |
70note: function defined here
71  --> $DIR/issue-101097.rs:6:4
72   |
73LL | fn f(
74   |    ^
75LL |     a1: A,
76   |     -----
77LL |     a2: A,
78   |     -----
79LL |     b1: B,
80   |     -----
81LL |     b2: B,
82   |     -----
83LL |     c1: C,
84   |     -----
85LL |     c2: C,
86   |     -----
87help: did you mean
88   |
89LL |     f(A, A, B, B, /* C */, /* C */);
90   |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
91
92error[E0308]: arguments to this function are incorrect
93  --> $DIR/issue-101097.rs:19:5
94   |
95LL |     f(C, C, B, B, A, A);
96   |     ^ -  -        -  - expected `C`, found `A`
97   |       |  |        |
98   |       |  |        expected `C`, found `A`
99   |       |  expected `A`, found `C`
100   |       expected `A`, found `C`
101   |
102note: function defined here
103  --> $DIR/issue-101097.rs:6:4
104   |
105LL | fn f(
106   |    ^
107LL |     a1: A,
108   |     -----
109LL |     a2: A,
110   |     -----
111LL |     b1: B,
112   |     -----
113LL |     b2: B,
114   |     -----
115LL |     c1: C,
116   |     -----
117LL |     c2: C,
118   |     -----
119help: did you mean
120   |
121LL |     f(A, A, B, B, C, C);
122   |      ~~~~~~~~~~~~~~~~~~
123
124error[E0308]: arguments to this function are incorrect
125  --> $DIR/issue-101097.rs:20:5
126   |
127LL |     f(C, C, A, B, A, A);
128   |     ^ -  -  -     -  - expected `C`, found `A`
129   |       |  |  |     |
130   |       |  |  |     expected `C`, found `A`
131   |       |  |  expected `B`, found `A`
132   |       |  expected `A`, found `C`
133   |       expected `A`, found `C`
134   |
135note: function defined here
136  --> $DIR/issue-101097.rs:6:4
137   |
138LL | fn f(
139   |    ^
140LL |     a1: A,
141   |     -----
142LL |     a2: A,
143   |     -----
144LL |     b1: B,
145   |     -----
146LL |     b2: B,
147   |     -----
148LL |     c1: C,
149   |     -----
150LL |     c2: C,
151   |     -----
152help: did you mean
153   |
154LL |     f(A, A, /* B */, B, C, C);
155   |      ~~~~~~~~~~~~~~~~~~~~~~~~
156
157error: aborting due to 5 previous errors
158
159Some errors have detailed explanations: E0061, E0308.
160For more information about an error, try `rustc --explain E0061`.
161