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