]> git.lizzy.rs Git - rust.git/blob - src/test/ui/argument-suggestions/mixed_cases.stderr
Rollup merge of #97317 - GuillaumeGomez:gui-settings-text-click, r=jsha
[rust.git] / src / test / ui / argument-suggestions / mixed_cases.stderr
1 error[E0061]: this function takes 2 arguments but 3 arguments were supplied
2   --> $DIR/mixed_cases.rs:10:3
3    |
4 LL |   two_args(1, "", X {});
5    |   ^^^^^^^^    --  ---- argument unexpected
6    |               |
7    |               expected `f32`, found `&str`
8    |
9 note: function defined here
10   --> $DIR/mixed_cases.rs:5:4
11    |
12 LL | fn two_args(_a: i32, _b: f32) {}
13    |    ^^^^^^^^ -------  -------
14 help: remove the extra argument
15    |
16 LL |   two_args(1, {f32});
17    |   ~~~~~~~~~~~~~~~~~~
18
19 error[E0061]: this function takes 3 arguments but 4 arguments were supplied
20   --> $DIR/mixed_cases.rs:11:3
21    |
22 LL |   three_args(1, "", X {}, "");
23    |   ^^^^^^^^^^    --  ----  -- argument unexpected
24    |                 |   |
25    |                 |   argument of type `&str` unexpected
26    |                 an argument of type `f32` is missing
27    |
28 note: function defined here
29   --> $DIR/mixed_cases.rs:6:4
30    |
31 LL | fn three_args(_a: i32, _b: f32, _c: &str) {}
32    |    ^^^^^^^^^^ -------  -------  --------
33 help: did you mean
34    |
35 LL |   three_args(1, {f32}, "");
36    |   ~~~~~~~~~~~~~~~~~~~~~~~~
37
38 error[E0061]: this function takes 3 arguments but 2 arguments were supplied
39   --> $DIR/mixed_cases.rs:14:3
40    |
41 LL |   three_args(1, X {});
42    |   ^^^^^^^^^^---------
43    |             |   |
44    |             |   expected `f32`, found struct `X`
45    |             an argument of type `&str` is missing
46    |
47 note: function defined here
48   --> $DIR/mixed_cases.rs:6:4
49    |
50 LL | fn three_args(_a: i32, _b: f32, _c: &str) {}
51    |    ^^^^^^^^^^ -------  -------  --------
52 help: provide the argument
53    |
54 LL |   three_args(1, {f32}, {&str});
55    |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
56
57 error[E0308]: arguments to this function are incorrect
58   --> $DIR/mixed_cases.rs:17:3
59    |
60 LL |   three_args(1, "", X {});
61    |   ^^^^^^^^^^    --  ---- argument of type `&str` unexpected
62    |                 |
63    |                 an argument of type `f32` is missing
64    |
65 note: function defined here
66   --> $DIR/mixed_cases.rs:6:4
67    |
68 LL | fn three_args(_a: i32, _b: f32, _c: &str) {}
69    |    ^^^^^^^^^^ -------  -------  --------
70 help: did you mean
71    |
72 LL |   three_args(1, {f32}, "");
73    |   ~~~~~~~~~~~~~~~~~~~~~~~~
74
75 error[E0308]: arguments to this function are incorrect
76   --> $DIR/mixed_cases.rs:20:3
77    |
78 LL |   three_args("", X {}, 1);
79    |   ^^^^^^^^^^ --  ----  - expected `&str`,found `{integer}`
80    |              |   |
81    |              |   expected `f32`, found struct `X`
82    |              expected `i32`,found `&'static str`
83    |
84 note: function defined here
85   --> $DIR/mixed_cases.rs:6:4
86    |
87 LL | fn three_args(_a: i32, _b: f32, _c: &str) {}
88    |    ^^^^^^^^^^ -------  -------  --------
89 help: swap these arguments
90    |
91 LL |   three_args(1, {f32}, "");
92    |   ~~~~~~~~~~~~~~~~~~~~~~~~
93
94 error[E0061]: this function takes 3 arguments but 2 arguments were supplied
95   --> $DIR/mixed_cases.rs:23:3
96    |
97 LL |   three_args("", 1);
98    |   ^^^^^^^^^^ --  -
99    |              |   |
100    |              |   an argument of type `f32` is missing
101    |              |   expected `&str`,found `{integer}`
102    |              expected `i32`,found `&'static str`
103    |
104 note: function defined here
105   --> $DIR/mixed_cases.rs:6:4
106    |
107 LL | fn three_args(_a: i32, _b: f32, _c: &str) {}
108    |    ^^^^^^^^^^ -------  -------  --------
109 help: did you mean
110    |
111 LL |   three_args(1, {f32}, "");
112    |   ~~~~~~~~~~~~~~~~~~~~~~~~
113
114 error: aborting due to 6 previous errors
115
116 Some errors have detailed explanations: E0061, E0308.
117 For more information about an error, try `rustc --explain E0061`.