]> git.proxmox.com Git - rustc.git/blame - src/test/ui/argument-suggestions/permuted_arguments.stderr
Update unsuspicious file list
[rustc.git] / src / test / ui / argument-suggestions / permuted_arguments.stderr
CommitLineData
923072b8
FG
1error[E0308]: arguments to this function are incorrect
2 --> $DIR/permuted_arguments.rs:10:3
04454e1e
FG
3 |
4LL | three_args(1.0, "", 1);
923072b8
FG
5 | ^^^^^^^^^^ --- -- - expected `&str`, found `{integer}`
6 | | |
7 | | expected `f32`, found `&'static str`
8 | expected `i32`, found `{float}`
04454e1e 9 |
923072b8
FG
10note: function defined here
11 --> $DIR/permuted_arguments.rs:5:4
04454e1e 12 |
923072b8
FG
13LL | fn three_args(_a: i32, _b: f32, _c: &str) {}
14 | ^^^^^^^^^^ ------- ------- --------
15help: reorder these arguments
04454e1e 16 |
923072b8 17LL | three_args(1, 1.0, "");
f2b60f7d 18 | ~~~~~~~~~~~~
04454e1e 19
923072b8
FG
20error[E0308]: arguments to this function are incorrect
21 --> $DIR/permuted_arguments.rs:12:3
04454e1e
FG
22 |
23LL | many_args(X {}, Y {}, 1, 1.0, "");
923072b8
FG
24 | ^^^^^^^^^ ---- ---- - --- -- expected `Y`, found `&'static str`
25 | | | | |
26 | | | | expected `X`, found `{float}`
27 | | | expected `&str`, found `{integer}`
28 | | expected `f32`, found `Y`
29 | expected `i32`, found `X`
04454e1e 30 |
923072b8
FG
31note: function defined here
32 --> $DIR/permuted_arguments.rs:6:4
04454e1e 33 |
923072b8
FG
34LL | fn many_args(_a: i32, _b: f32, _c: &str, _d: X, _e: Y) {}
35 | ^^^^^^^^^ ------- ------- -------- ----- -----
36help: reorder these arguments
04454e1e 37 |
923072b8 38LL | many_args(1, 1.0, "", X {}, Y {});
f2b60f7d 39 | ~~~~~~~~~~~~~~~~~~~~~~~~
04454e1e 40
923072b8 41error: aborting due to 2 previous errors
04454e1e
FG
42
43For more information about this error, try `rustc --explain E0308`.