summaryrefslogtreecommitdiffstats
path: root/tests/ui/argument-suggestions/mixed_cases.stderr
blob: c645dd381792953442bc300a50b0bd440aa07780 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
error[E0061]: this function takes 2 arguments but 3 arguments were supplied
  --> $DIR/mixed_cases.rs:10:3
   |
LL |   two_args(1, "", X {});
   |   ^^^^^^^^    --  ---- unexpected argument of type `X`
   |               |
   |               expected `f32`, found `&str`
   |
note: function defined here
  --> $DIR/mixed_cases.rs:5:4
   |
LL | fn two_args(_a: i32, _b: f32) {}
   |    ^^^^^^^^ -------  -------
help: remove the extra argument
   |
LL -   two_args(1, "", X {});
LL +   two_args(1, /* f32 */);
   |

error[E0061]: this function takes 3 arguments but 4 arguments were supplied
  --> $DIR/mixed_cases.rs:11:3
   |
LL |   three_args(1, "", X {}, "");
   |   ^^^^^^^^^^    --  ----  -- unexpected argument of type `&'static str`
   |                 |   |
   |                 |   unexpected argument of type `X`
   |                 an argument of type `f32` is missing
   |
note: function defined here
  --> $DIR/mixed_cases.rs:6:4
   |
LL | fn three_args(_a: i32, _b: f32, _c: &str) {}
   |    ^^^^^^^^^^ -------  -------  --------
help: did you mean
   |
LL |   three_args(1, /* f32 */, "");
   |             ~~~~~~~~~~~~~~~~~~

error[E0061]: this function takes 3 arguments but 2 arguments were supplied
  --> $DIR/mixed_cases.rs:14:3
   |
LL |   three_args(1, X {});
   |   ^^^^^^^^^^---------
   |             |   |
   |             |   expected `f32`, found `X`
   |             an argument of type `&str` is missing
   |
note: function defined here
  --> $DIR/mixed_cases.rs:6:4
   |
LL | fn three_args(_a: i32, _b: f32, _c: &str) {}
   |    ^^^^^^^^^^ -------  -------  --------
help: provide the argument
   |
LL |   three_args(1, /* f32 */, /* &str */);
   |             ~~~~~~~~~~~~~~~~~~~~~~~~~~

error[E0308]: arguments to this function are incorrect
  --> $DIR/mixed_cases.rs:17:3
   |
LL |   three_args(1, "", X {});
   |   ^^^^^^^^^^    --  ---- unexpected argument of type `X`
   |                 |
   |                 an argument of type `f32` is missing
   |
note: function defined here
  --> $DIR/mixed_cases.rs:6:4
   |
LL | fn three_args(_a: i32, _b: f32, _c: &str) {}
   |    ^^^^^^^^^^ -------  -------  --------
help: did you mean
   |
LL |   three_args(1, /* f32 */, "");
   |             ~~~~~~~~~~~~~~~~~~

error[E0308]: arguments to this function are incorrect
  --> $DIR/mixed_cases.rs:20:3
   |
LL |   three_args("", X {}, 1);
   |   ^^^^^^^^^^ --  ----  - expected `&str`, found `{integer}`
   |              |   |
   |              |   expected `f32`, found `X`
   |              expected `i32`, found `&'static str`
   |
note: function defined here
  --> $DIR/mixed_cases.rs:6:4
   |
LL | fn three_args(_a: i32, _b: f32, _c: &str) {}
   |    ^^^^^^^^^^ -------  -------  --------
help: swap these arguments
   |
LL |   three_args(1, /* f32 */, "");
   |             ~~~~~~~~~~~~~~~~~~

error[E0061]: this function takes 3 arguments but 2 arguments were supplied
  --> $DIR/mixed_cases.rs:23:3
   |
LL |   three_args("", 1);
   |   ^^^^^^^^^^ --  -
   |              |   |
   |              |   an argument of type `f32` is missing
   |              |   expected `&str`, found `{integer}`
   |              expected `i32`, found `&'static str`
   |
note: function defined here
  --> $DIR/mixed_cases.rs:6:4
   |
LL | fn three_args(_a: i32, _b: f32, _c: &str) {}
   |    ^^^^^^^^^^ -------  -------  --------
help: did you mean
   |
LL |   three_args(1, /* f32 */, "");
   |             ~~~~~~~~~~~~~~~~~~

error: aborting due to 6 previous errors

Some errors have detailed explanations: E0061, E0308.
For more information about an error, try `rustc --explain E0061`.