1 error[E0308]: mismatched types
2 --> $DIR/basic.rs:20:13
5 | ------- ^^^ expected `u32`, found floating-point number
7 | arguments to this function are incorrect
9 note: function defined here
10 --> $DIR/basic.rs:13:4
12 LL | fn invalid(_i: u32) {}
15 error[E0061]: this function takes 0 arguments but 1 argument was supplied
16 --> $DIR/basic.rs:21:5
19 | ^^^^^ -- argument of type `&'static str` unexpected
21 note: function defined here
22 --> $DIR/basic.rs:14:4
26 help: remove the extra argument
31 error[E0061]: this function takes 1 argument but 0 arguments were supplied
32 --> $DIR/basic.rs:22:5
35 | ^^^^^^^-- an argument of type `u32` is missing
37 note: function defined here
38 --> $DIR/basic.rs:15:4
40 LL | fn missing(_i: u32) {}
42 help: provide the argument
44 LL | missing(/* u32 */);
47 error[E0308]: arguments to this function are incorrect
48 --> $DIR/basic.rs:23:5
51 | ^^^^^^^ -- - expected `&str`, found `{integer}`
53 | expected `u32`, found `&'static str`
55 note: function defined here
56 --> $DIR/basic.rs:16:4
58 LL | fn swapped(_i: u32, _s: &str) {}
59 | ^^^^^^^ ------- --------
60 help: swap these arguments
65 error[E0308]: arguments to this function are incorrect
66 --> $DIR/basic.rs:24:5
68 LL | permuted(Y {}, Z {}, X {});
69 | ^^^^^^^^ ---- ---- ---- expected `Z`, found `X`
71 | | expected `Y`, found `Z`
72 | expected `X`, found `Y`
74 note: function defined here
75 --> $DIR/basic.rs:17:4
77 LL | fn permuted(_x: X, _y: Y, _z: Z) {}
78 | ^^^^^^^^ ----- ----- -----
79 help: reorder these arguments
81 LL | permuted(X {}, Y {}, Z {});
84 error[E0057]: this function takes 1 argument but 0 arguments were supplied
85 --> $DIR/basic.rs:27:5
88 | ^^^^^^^-- an argument is missing
90 note: closure defined here
91 --> $DIR/basic.rs:26:19
93 LL | let closure = |x| x;
95 help: provide the argument
97 LL | closure(/* value */);
100 error: aborting due to 6 previous errors
102 Some errors have detailed explanations: E0057, E0061, E0308.
103 For more information about an error, try `rustc --explain E0057`.